|
XNIO API 3.0.7.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xnio.channels.SocketAddressBuffer
public final class SocketAddressBuffer
A buffer for source and destination addresses.
| Constructor Summary | |
|---|---|
SocketAddressBuffer()
Construct a new instance. |
|
| Method Summary | ||
|---|---|---|
void |
clear()
Clear both addresses in the buffer. |
|
SocketAddress |
getDestinationAddress()
Get the destination address. |
|
|
getDestinationAddress(Class<A> type)
Get the destination address. |
|
SocketAddress |
getSourceAddress()
Get the source address. |
|
|
getSourceAddress(Class<A> type)
Get the source address. |
|
void |
setDestinationAddress(SocketAddress destinationAddress)
Set the destination address. |
|
void |
setSourceAddress(SocketAddress sourceAddress)
Set the source address. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketAddressBuffer()
| Method Detail |
|---|
public SocketAddress getSourceAddress()
null if not setpublic <A extends SocketAddress> A getSourceAddress(Class<A> type)
type - the address type to get
null if not setpublic void setSourceAddress(SocketAddress sourceAddress)
sourceAddress - the source address, or null to clearpublic SocketAddress getDestinationAddress()
null if not setpublic <A extends SocketAddress> A getDestinationAddress(Class<A> type)
type - the address type to get
null if not setpublic void setDestinationAddress(SocketAddress destinationAddress)
destinationAddress - the destination address, or null to clearpublic void clear()
|
XNIO API 3.0.7.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||