Public Member Functions | |
void | awaitShutdown () throws InterruptedException |
boolean | awaitShutdown (long timeout, TimeUnit unit) throws InterruptedException |
void | onShutdown (ServiceServer< T, S > server) |
Static Public Member Functions | |
static< T, S > CountDownServiceServerListener < T, S > | newDefault () |
static< T, S > CountDownServiceServerListener < T, S > | newFromCounts (int masterRegistrationSuccessCount, int masterRegistrationFailureCount, int masterUnregistrationSuccessCount, int masterUnregistrationFailureCount) |
Private Member Functions | |
CountDownServiceServerListener (CountDownLatch masterRegistrationSuccessLatch, CountDownLatch masterRegistrationFailureLatch, CountDownLatch masterUnregistrationSuccessLatch, CountDownLatch masterUnregistrationFailureLatch) | |
Private Attributes | |
final CountDownLatch | shutdownLatch |
A ServiceServerListener which uses CountDownLatch to track message invocations.
Definition at line 30 of file CountDownServiceServerListener.java.
org.ros.node.service.CountDownServiceServerListener< T, S >.CountDownServiceServerListener | ( | CountDownLatch | masterRegistrationSuccessLatch, |
CountDownLatch | masterRegistrationFailureLatch, | ||
CountDownLatch | masterUnregistrationSuccessLatch, | ||
CountDownLatch | masterUnregistrationFailureLatch | ||
) | [inline, private] |
Definition at line 62 of file CountDownServiceServerListener.java.
void org.ros.node.service.CountDownServiceServerListener< T, S >.awaitShutdown | ( | ) | throws InterruptedException [inline] |
Wait for shutdown.
InterruptedException |
Definition at line 81 of file CountDownServiceServerListener.java.
boolean org.ros.node.service.CountDownServiceServerListener< T, S >.awaitShutdown | ( | long | timeout, |
TimeUnit | unit | ||
) | throws InterruptedException [inline] |
Wait for shutdown within the given time period.
timeout | the maximum time to wait |
unit | the time unit of the timeout |
true
false
InterruptedException |
Definition at line 96 of file CountDownServiceServerListener.java.
static <T,S> CountDownServiceServerListener<T, S> org.ros.node.service.CountDownServiceServerListener< T, S >.newDefault | ( | ) | [inline, static] |
Construct a CountDownServiceServerListener with all counts set to 1.
Definition at line 39 of file CountDownServiceServerListener.java.
static <T,S> CountDownServiceServerListener<T, S> org.ros.node.service.CountDownServiceServerListener< T, S >.newFromCounts | ( | int | masterRegistrationSuccessCount, |
int | masterRegistrationFailureCount, | ||
int | masterUnregistrationSuccessCount, | ||
int | masterUnregistrationFailureCount | ||
) | [inline, static] |
masterRegistrationSuccessCount | the number of successful master registrations to wait for |
masterRegistrationFailureCount | the number of failing master registrations to wait for |
masterUnregistrationSuccessCount | the number of successful master unregistrations to wait for |
masterUnregistrationFailureCount | the number of failing master unregistrations to wait for |
Definition at line 53 of file CountDownServiceServerListener.java.
void org.ros.node.service.CountDownServiceServerListener< T, S >.onShutdown | ( | ServiceServer< T, S > | serviceServer | ) | [inline] |
serviceServer | the ServiceServer which has been shut down |
Implements org.ros.node.service.ServiceServerListener< T, S >.
Definition at line 72 of file CountDownServiceServerListener.java.
final CountDownLatch org.ros.node.service.CountDownServiceServerListener< T, S >.shutdownLatch [private] |
Definition at line 33 of file CountDownServiceServerListener.java.