Class UdpListener
java.lang.Object
com.codingchili.core.listener.transport.UdpListener
- All Implemented Interfaces:
DeploymentAware
,CoreDeployment
,CoreListener
UDP transport listener.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionhandler(CoreHandler handler)
void
init(CoreContext core)
Init method that is called with the context that the service was deployed from.int
settings(ListenerSettings settings)
void
void
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.codingchili.core.listener.CoreListener
name
-
Constructor Details
-
UdpListener
public UdpListener()
-
-
Method Details
-
init
Description copied from interface:CoreDeployment
Init method that is called with the context that the service was deployed from.- Specified by:
init
in interfaceCoreDeployment
- Parameters:
core
- the core context to use.
-
settings
- Specified by:
settings
in interfaceCoreListener
- Parameters:
settings
- listener settings for the listener.- Returns:
- fluent
-
handler
- Specified by:
handler
in interfaceCoreListener
- Parameters:
handler
- the handler to invoke when the listener is triggered the handler must be initialized with the current context by the implementing class.- Returns:
- fluent
-
start
- Specified by:
start
in interfaceCoreDeployment
- Parameters:
start
- complete when asynchronous startup is completed.
-
stop
- Specified by:
stop
in interfaceCoreDeployment
- Parameters:
stop
- complete when asynchronous shutdown is completed.
-
instances
public int instances()- Specified by:
instances
in interfaceDeploymentAware
- Returns:
- number of instances to deploiy of the given deployable..
-
toString
-