com.sun.grizzly.attributes
Interface AttributeStorage

All Known Subinterfaces:
Connection<L>, NIOConnection, WorkerThread
All Known Implementing Classes:
AbstractNIOConnection, DefaultWorkerThread, TCPNIOConnection, TCPNIOServerConnection, UDPNIOConnection, UDPNIOServerConnection

public interface AttributeStorage

AttributeStorage provides access to a AttributeHolder, where application can store Attributes. This interface lets us describe class, which is not AttributeHolder itself, but has associated AttributeHolder.

Author:
Alexey Stashok
See Also:
AttributeHolder

Method Summary
 AttributeHolder getAttributes()
          Get associated AttributeHolder.
 AttributeHolder obtainAttributes()
          Get associated AttributeHolder.
 

Method Detail

getAttributes

AttributeHolder getAttributes()
Get associated AttributeHolder. Implementation may return null if AttributeHolder wasn't initialized yet.

Returns:
associated AttributeHolder. Implementation may return null if AttributeHolder wasn't initialized yet.

obtainAttributes

AttributeHolder obtainAttributes()
Get associated AttributeHolder. Unlike getAttributes() - method never returns null.

Returns:
associated AttributeHolder. Unlike getAttributes() - method never returns null.


Copyright © 2009 SUN Microsystems. All Rights Reserved.