org.apache.curator.framework.listen
Interface Listenable<T>

All Known Implementing Classes:
ListenerContainer

public interface Listenable<T>

Abstracts a listenable object


Method Summary
 void addListener(T listener)
          Add the given listener.
 void addListener(T listener, Executor executor)
          Add the given listener.
 void removeListener(T listener)
          Remove the given listener
 

Method Detail

addListener

void addListener(T listener)
Add the given listener. The listener will be executed in the containing instance's thread.

Parameters:
listener - listener to add

addListener

void addListener(T listener,
                 Executor executor)
Add the given listener. The listener will be executed using the given executor

Parameters:
listener - listener to add
executor - executor to run listener in

removeListener

void removeListener(T listener)
Remove the given listener

Parameters:
listener - listener to remove


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.