@ELocalOnly public final class EFileNotification extends ENotificationMessage implements java.io.Serializable
WatchEvent
asynchronously to all interested listeners. The message
subject is the file or directory path. The message contains
the how the file changed (created, modified, or deleted), the
file modification timestamp (in Java millisecond epoch time),
and the file length in byte.Modifier and Type | Class and Description |
---|---|
static class |
EFileNotification.Builder |
static class |
EFileNotification.EventType
The watched file was either created, modified, or deleted.
|
EMessage.MessageType
Modifier and Type | Field and Description |
---|---|
EFileNotification.EventType |
eventType
This notification signifies that either the file or
directory was created, modified, or deleted.
|
java.io.File |
file
The notification applies to this file instance.
|
long |
lastModified
The date and time when the
file was last
modified. |
long |
length
file length in bytes. |
NO_PUB_ID, position, publisherId
MAX_SUBJECT_LENGTH, subject, timestamp
Modifier and Type | Method and Description |
---|---|
static EFileNotification.Builder |
builder()
Returns an
EFileNotification message builder. |
java.lang.String |
toString()
Returns notification message publisher ID and position as
a string.
|
equals, hashCode
isApplicationMessage, isSystemMessage, key, messageType
public final java.io.File file
public final EFileNotification.EventType eventType
public final long lastModified
file
was last
modified. Will be zero if eventType
is
EFileNotification.EventType.DELETE
.public final long length
public java.lang.String toString()
ENotificationMessage
toString
in class ENotificationMessage
public static EFileNotification.Builder builder()
EFileNotification
message builder.Copyright © 2001 - 2024. Charles W. Rapp. All rights reserved.