sealed case class RegisterSubscriber(event: Kind[Path], path: Path, subscriber: ActorRef, modifier: Option[Modifier] = None, recursive: Boolean = false, persistent: Boolean = false) extends ForwardToSubscriber with RegisterCallbackMessage with Product with Serializable
Message case class for registering an ActorRef to receive EventAtPath messages when something happens at a path
- event
WatchEvent.Kind[Path], one of ENTRY_CREATE, ENTRY_MODIFY, ENTRY_DELETE
- path
Path (Java object) pointing to a file/directory
- subscriber
ActorRef that you want to receive notifications on
- modifier
Optional Modifier that qualifies how a Watchable is registered with a WatchService.
- recursive
Boolean To recursively register the callback or not, defaults to false
- persistent
Boolean To automatically add the same callback to new files or not, defaults to false
- Alphabetic
- By Inheritance
- RegisterSubscriber
- Serializable
- Serializable
- Product
- Equals
- RegisterCallbackMessage
- ForwardToSubscriber
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
RegisterSubscriber(event: Kind[Path], path: Path, subscriber: ActorRef, modifier: Option[Modifier] = None, recursive: Boolean = false, persistent: Boolean = false)
- event
WatchEvent.Kind[Path], one of ENTRY_CREATE, ENTRY_MODIFY, ENTRY_DELETE
- path
Path (Java object) pointing to a file/directory
- subscriber
ActorRef that you want to receive notifications on
- modifier
Optional Modifier that qualifies how a Watchable is registered with a WatchService.
- recursive
Boolean To recursively register the callback or not, defaults to false
- persistent
Boolean To automatically add the same callback to new files or not, defaults to false
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bossy: Boolean
- Definition Classes
- RegisterCallbackMessage
-
val
callback: Callback
- Definition Classes
- ForwardToSubscriber
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
event: Kind[Path]
- Definition Classes
- RegisterSubscriber → RegisterCallbackMessage
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
modifier: Option[Modifier]
- Definition Classes
- RegisterSubscriber → RegisterCallbackMessage
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
path: Path
- Definition Classes
- RegisterSubscriber → RegisterCallbackMessage
-
val
persistent: Boolean
- Definition Classes
- RegisterSubscriber → RegisterCallbackMessage
-
val
recursive: Boolean
- Definition Classes
- RegisterSubscriber → RegisterCallbackMessage
- val subscriber: ActorRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )