public class EnhancedMessageEvent extends MessageEvent
Modifier and Type | Field and Description |
---|---|
static String |
FILE_SENDING
Sent when a file was successfully sent to server.
|
static String |
MERGED_PATH
Sent by MergedResponse when 2 files were merged.
|
static String |
REQUESTS_COUNT
Sent before all request are processed.
|
static String |
REQUESTS_SENT
Sent when a all requests were sent to server.
|
source
Constructor and Description |
---|
EnhancedMessageEvent(Object source,
String key,
Object value)
Construct a MessageEvent
|
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Getter for property key.
|
Object |
getValue()
Getter for property value.
|
void |
setKey(String key)
Setter for property key.
|
void |
setValue(Object value)
Setter for property value.
|
fireEvent, getMessage, getRawData, isError, isTagged, parseTaggedMessage, setError, setMessage, setTagged
getSource, toString
public static final String MERGED_PATH
public static final String FILE_SENDING
public static final String REQUESTS_SENT
public static final String REQUESTS_COUNT
public EnhancedMessageEvent(Object source, String key, Object value)
source
- the source of the eventkey
- identifier. Specifies what the value object is.value
- . Some value passed to the listeners. The key parameter helps
the listeners to identify the value and handle it correctly.
for stderr rather than stdout), false otherwisepublic String getKey()
public void setKey(String key)
key
- New value of property key.public Object getValue()
public void setValue(Object value)
value
- New value of property value.Copyright © 2016. All rights reserved.