com.netflix.astyanax.connectionpool
Interface ConnectionContext

All Known Subinterfaces:
Connection<CL>

public interface ConnectionContext

Context specific to a connection. This interface makes it possible to store connection specific state such as prepared CQL statement ids.


Method Summary
 java.lang.Object getMetadata(java.lang.String key)
           
 boolean hasMetadata(java.lang.String key)
           
 void setMetadata(java.lang.String key, java.lang.Object obj)
          Set metadata identified by 'key'
 

Method Detail

setMetadata

void setMetadata(java.lang.String key,
                 java.lang.Object obj)
Set metadata identified by 'key'

Parameters:
key -
obj -

getMetadata

java.lang.Object getMetadata(java.lang.String key)
Parameters:
key -
Returns:
Get metadata stored by calling setMetadata

hasMetadata

boolean hasMetadata(java.lang.String key)
Parameters:
key -
Returns:
Return true if the metadata with the specified key exists.