public void register(final StreamResultFuture result) { result.addEventListener(notifier); // Make sure we remove the stream on completion (whether successful or not) result.addListener(new Runnable() { public void run() { initiatedStreams.remove(result.planId); } }, MoreExecutors.directExecutor()); initiatedStreams.put(result.planId, result); }
public void register(final StreamResultFuture result) { result.addEventListener(notifier); // Make sure we remove the stream on completion (whether successful or not) result.addListener(new Runnable() { public void run() { initiatedStreams.remove(result.planId); } }, MoreExecutors.directExecutor()); initiatedStreams.put(result.planId, result); }
public void registerReceiving(final StreamResultFuture result) { result.addEventListener(notifier); // Make sure we remove the stream on completion (whether successful or not) result.addListener(new Runnable() { public void run() { receivingStreams.remove(result.planId); } }, MoreExecutors.directExecutor()); receivingStreams.put(result.planId, result); }
public void registerReceiving(final StreamResultFuture result) { result.addEventListener(notifier); // Make sure we remove the stream on completion (whether successful or not) result.addListener(new Runnable() { public void run() { receivingStreams.remove(result.planId); } }, MoreExecutors.directExecutor()); receivingStreams.put(result.planId, result); }
public void register(final StreamResultFuture result) { result.addEventListener(notifier); // Make sure we remove the stream on completion (whether successful or not) result.addListener(new Runnable() { public void run() { initiatedStreams.remove(result.planId); } }, MoreExecutors.sameThreadExecutor()); initiatedStreams.put(result.planId, result); }
public void register(final StreamResultFuture result) { result.addEventListener(notifier); // Make sure we remove the stream on completion (whether successful or not) result.addListener(new Runnable() { public void run() { initiatedStreams.remove(result.planId); } }, MoreExecutors.directExecutor()); initiatedStreams.put(result.planId, result); }
public void registerReceiving(final StreamResultFuture result) { result.addEventListener(notifier); // Make sure we remove the stream on completion (whether successful or not) result.addListener(new Runnable() { public void run() { receivingStreams.remove(result.planId); } }, MoreExecutors.directExecutor()); receivingStreams.put(result.planId, result); }
public void registerReceiving(final StreamResultFuture result) { result.addEventListener(notifier); // Make sure we remove the stream on completion (whether successful or not) result.addListener(new Runnable() { public void run() { receivingStreams.remove(result.planId); } }, MoreExecutors.sameThreadExecutor()); receivingStreams.put(result.planId, result); }