All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.astyanax.connectionpool.ConnectionContext Maven / Gradle / Ivy

There is a newer version: 3.10.2
Show newest version
package com.netflix.astyanax.connectionpool;

/**
 * Context specific to a connection.  This interface makes it possible to store
 * connection specific state such as prepared CQL statement ids.
 * @author elandau
 *
 */
public interface ConnectionContext {
    /**
     * Set metadata identified by 'key'
     * @param key
     * @param obj
     */
    public void    setMetadata(String key, Object obj);
    
    /**
     * @return Get metadata stored by calling setMetadata
     * @param key
     */
    public Object  getMetadata(String key);
    
    /**
     * @return Return true if the metadata with the specified key exists.
     * @param key
     */
    public boolean hasMetadata(String key);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy