@Override protected void stopService() throws Exception { this.partition.unregisterMembershipListener(this); }
public void destroyService() throws Exception { // we cleanly shutdown. This should be optimized. for (String key: this.localReplicants.keySet()) { this.removeLocal(key); // channel is disconnected, so don't try to notify cluster } if (this.partition != null) { this.partition.unregisterRPCHandler(SERVICE_NAME, this); this.partition.unsubscribeFromStateTransferEvents(SERVICE_NAME, this); this.partition.unregisterMembershipListener(this); } }