org.terracotta.toolkit.object
Interface Destroyable

All Known Subinterfaces:
ToolkitAtomicLong, ToolkitBarrier, ToolkitBlockingQueue<E>, ToolkitCache<K,V>, ToolkitList<E>, ToolkitMap<K,V>, ToolkitNotifier<T>, ToolkitSet<E>, ToolkitSortedMap<K,V>, ToolkitSortedSet<E>, ToolkitStore<K,V>

public interface Destroyable

An object that can be destroyed


Method Summary
 void destroy()
          Destroys the object.
 boolean isDestroyed()
          Query whether already destroyed or not
 

Method Detail

isDestroyed

boolean isDestroyed()
Query whether already destroyed or not

Returns:
true if already destroyed

destroy

void destroy()
Destroys the object. Subsequent calls are no-ops after invoking this method one time. In case of distributed toolkits, calling destroy in one node destroys the instance in all the other nodes in the cluster.



Copyright © 2014 Terracotta, Inc.. All Rights Reserved.