public class ListenerConfig extends Object
EventListener. The configuration contains either the classname
 of the EventListener implementation, or the actual EventListener instance.| Modifier and Type | Field and Description | 
|---|---|
| protected String | className | 
| protected EventListener | implementation | 
| Constructor and Description | 
|---|
| ListenerConfig()Creates a ListenerConfig without className/implementation. | 
| ListenerConfig(EventListener implementation)Creates a ListenerConfig with the given implementation. | 
| ListenerConfig(ListenerConfig config) | 
| ListenerConfig(String className)Creates a ListenerConfig with the given className. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| ListenerConfig | getAsReadOnly() | 
| String | getClassName()Returns the name of the class of the EventListener. | 
| EventListener | getImplementation()Returns the EventListener implementation. | 
| int | hashCode() | 
| boolean | isIncludeValue() | 
| boolean | isLocal() | 
| ListenerConfig | setClassName(String className)Sets the class name of the EventListener. | 
| ListenerConfig | setImplementation(EventListener implementation)Sets the EventListener implementation. | 
| String | toString() | 
protected String className
protected EventListener implementation
public ListenerConfig()
public ListenerConfig(String className)
className - the name of the EventListener class.IllegalArgumentException - if className is null or an empty String.public ListenerConfig(ListenerConfig config)
public ListenerConfig(EventListener implementation)
implementation - the implementation to use as EventListener.IllegalArgumentException - if the implementation is null.public ListenerConfig getAsReadOnly()
public String getClassName()
setClassName(String)public ListenerConfig setClassName(String className)
className - the name of the class of the EventListener.IllegalArgumentException - if className is null or an empty String.setImplementation(java.util.EventListener), 
getClassName()public EventListener getImplementation()
setImplementation(java.util.EventListener)public ListenerConfig setImplementation(EventListener implementation)
implementation - the EventListener implementation.IllegalArgumentException - the implementation is null.setClassName(String), 
getImplementation()public boolean isIncludeValue()
public boolean isLocal()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.