protected static class NettyUDPMessageSender.EventContextImpl extends Object implements EventContext
| Modifier and Type | Field and Description |
|---|---|
(package private) InetSocketAddress |
clientAddress |
| Constructor and Description |
|---|
NettyUDPMessageSender.EventContextImpl(InetSocketAddress clientAddress) |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getAttachment()
Retrieves an object which is
attached to
this context. |
Session |
getSession() |
void |
setAttachment(Object attachement)
Attaches an object to this context to store a stateful information
specific to the
Event which is associated with this
context. |
void |
setSession(Session session) |
final InetSocketAddress clientAddress
public NettyUDPMessageSender.EventContextImpl(InetSocketAddress clientAddress)
public Session getSession()
getSession in interface EventContextpublic void setSession(Session session)
setSession in interface EventContextpublic InetSocketAddress getAttachment()
EventContextattached to
this context.getAttachment in interface EventContextnull if no object was attached or
null was attachedpublic void setAttachment(Object attachement)
EventContextEvent which is associated with this
context.setAttachment in interface EventContextCopyright © 2013. All Rights Reserved.