@Override public String toString() { final E obj = get(); return obj != null ? "{" + obj + "}" : null; }
/** * Returns the address of the endpoint this <tt>Connection</tt> is * connected to, or <tt>null</tt> if it is unconnected. * @return the address of the endpoint this <tt>Connection</tt> is * connected to, or <tt>null</tt> if it is unconnected. */ @Override public SocketAddress getPeerAddress() { return peerSocketAddressHolder.get(); }
/** * Returns the address of the endpoint this <tt>Connection</tt> is * connected to, or <tt>null</tt> if it is unconnected. * @return the address of the endpoint this <tt>Connection</tt> is * connected to, or <tt>null</tt> if it is unconnected. */ @Override public SocketAddress getPeerAddress() { return peerSocketAddressHolder.get(); }
/** * Returns the local address of this <tt>Connection</tt>, * or <tt>null</tt> if it is unconnected. * @return the local address of this <tt>Connection</tt>, * or <tt>null</tt> if it is unconnected. */ @Override public SocketAddress getLocalAddress() { return localSocketAddressHolder.get(); }
/** * Get address, associated with the current {@link org.glassfish.grizzly.IOEvent} processing. * When we process {@link org.glassfish.grizzly.IOEvent#READ} event - it represents sender address, * or when process {@link org.glassfish.grizzly.IOEvent#WRITE} - address of receiver. * * @return address, associated with the current {@link org.glassfish.grizzly.IOEvent} processing. */ public Object getAddress() { return addressHolder != null ? addressHolder.get() : null; }
@Override public String toString() { final E obj = get(); return obj != null ? "{" + obj + "}" : null; }
/** * Returns the address of the endpoint this <tt>Connection</tt> is * connected to, or <tt>null</tt> if it is unconnected. * @return the address of the endpoint this <tt>Connection</tt> is * connected to, or <tt>null</tt> if it is unconnected. */ @Override public SocketAddress getPeerAddress() { return peerSocketAddressHolder.get(); }
/** * Returns the local address of this <tt>Connection</tt>, * or <tt>null</tt> if it is unconnected. * @return the local address of this <tt>Connection</tt>, * or <tt>null</tt> if it is unconnected. */ @Override public SocketAddress getLocalAddress() { return localSocketAddressHolder.get(); }
/** * Returns the address of the endpoint this <tt>Connection</tt> is * connected to, or <tt>null</tt> if it is unconnected. * @return the address of the endpoint this <tt>Connection</tt> is * connected to, or <tt>null</tt> if it is unconnected. */ @Override public SocketAddress getPeerAddress() { return peerSocketAddressHolder.get(); }
@Override public String toString() { final E obj = get(); return obj != null ? "{" + obj + "}" : null; }
/** * Returns the local address of this <tt>Connection</tt>, * or <tt>null</tt> if it is unconnected. * @return the local address of this <tt>Connection</tt>, * or <tt>null</tt> if it is unconnected. */ @Override public SocketAddress getLocalAddress() { return localSocketAddressHolder.get(); }
/** * Returns the local address of this <tt>Connection</tt>, * or <tt>null</tt> if it is unconnected. * @return the local address of this <tt>Connection</tt>, * or <tt>null</tt> if it is unconnected. */ @Override public SocketAddress getLocalAddress() { return localSocketAddressHolder.get(); }
/** * Get address, associated with the current {@link org.glassfish.grizzly.IOEvent} processing. * When we process {@link org.glassfish.grizzly.IOEvent#READ} event - it represents sender address, * or when process {@link org.glassfish.grizzly.IOEvent#WRITE} - address of receiver. * * @return address, associated with the current {@link org.glassfish.grizzly.IOEvent} processing. */ public Object getAddress() { return addressHolder != null ? addressHolder.get() : null; }
/** * Returns the address of the endpoint this <tt>Connection</tt> is * connected to, or <tt>null</tt> if it is unconnected. * @return the address of the endpoint this <tt>Connection</tt> is * connected to, or <tt>null</tt> if it is unconnected. */ @Override public SocketAddress getPeerAddress() { return peerSocketAddressHolder.get(); }
/** * Get the destination address, the message was written to. * * @return the destination address, the message was written to. */ public final L getDstAddress() { checkRecycled(); return dstAddressHolder != null ? dstAddressHolder.get() : null; }
/** * Get the source address, the message was read from. * * @return the source address, the message was read from. */ public final L getSrcAddress() { checkRecycled(); return srcAddressHolder != null ? srcAddressHolder.get() : null; }
/** * Get the destination address, the message was written to. * * @return the destination address, the message was written to. */ public final L getDstAddress() { checkRecycled(); return dstAddressHolder != null ? dstAddressHolder.get() : null; }
/** * Get the source address, the message was read from. * * @return the source address, the message was read from. */ public final L getSrcAddress() { checkRecycled(); return srcAddressHolder != null ? srcAddressHolder.get() : null; }
/** * Get the destination address, the message was written to. * * @return the destination address, the message was written to. */ public final L getDstAddress() { checkRecycled(); return dstAddressHolder != null ? dstAddressHolder.get() : null; }
/** * Get the source address, the message was read from. * * @return the source address, the message was read from. */ public final L getSrcAddress() { checkRecycled(); return srcAddressHolder != null ? srcAddressHolder.get() : null; }