public class EntryListenerConfig extends ListenerConfig
Modifier and Type | Class and Description |
---|---|
static class |
EntryListenerConfig.MapListenerToEntryListenerAdapter
Wraps a MapListener into an EntryListener.
|
className, implementation
Constructor and Description |
---|
EntryListenerConfig() |
EntryListenerConfig(EntryListener implementation,
boolean local,
boolean includeValue) |
EntryListenerConfig(EntryListenerConfig config) |
EntryListenerConfig(MapListener implementation,
boolean local,
boolean includeValue) |
EntryListenerConfig(String className,
boolean local,
boolean includeValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
EntryListenerConfigReadOnly |
getAsReadOnly()
Deprecated.
this method will be removed in 4.0; it is meant for internal usage only
|
int |
getId()
Returns type identifier for this class.
|
EntryListener |
getImplementation()
Returns the EventListener implementation.
|
int |
hashCode() |
boolean |
isIncludeValue() |
boolean |
isLocal() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
EntryListenerConfig |
setImplementation(EntryListener implementation) |
ListenerConfig |
setImplementation(EventListener implementation)
Sets the EventListener implementation.
|
EntryListenerConfig |
setIncludeValue(boolean includeValue) |
EntryListenerConfig |
setLocal(boolean local) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
getClassName, getFactoryId, setClassName
public EntryListenerConfig()
public EntryListenerConfig(String className, boolean local, boolean includeValue)
public EntryListenerConfig(EntryListener implementation, boolean local, boolean includeValue)
public EntryListenerConfig(MapListener implementation, boolean local, boolean includeValue)
public EntryListenerConfig(EntryListenerConfig config)
public EntryListenerConfigReadOnly getAsReadOnly()
getAsReadOnly
in class ListenerConfig
public ListenerConfig setImplementation(EventListener implementation)
ListenerConfig
If a className was set, it will be removed.
setImplementation
in class ListenerConfig
implementation
- the EventListener implementationListenerConfig.setClassName(String)
,
ListenerConfig.getImplementation()
public EntryListener getImplementation()
ListenerConfig
getImplementation
in class ListenerConfig
ListenerConfig.setImplementation(java.util.EventListener)
public EntryListenerConfig setImplementation(EntryListener implementation)
public boolean isLocal()
isLocal
in class ListenerConfig
public EntryListenerConfig setLocal(boolean local)
public boolean isIncludeValue()
isIncludeValue
in class ListenerConfig
public EntryListenerConfig setIncludeValue(boolean includeValue)
public String toString()
toString
in class ListenerConfig
public boolean equals(Object o)
equals
in class ListenerConfig
public int hashCode()
hashCode
in class ListenerConfig
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
getId
in class ListenerConfig
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
writeData
in class ListenerConfig
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
readData
in class ListenerConfig
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.