Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
org.ros.node.service.CountDownServiceServerListener< T, S > Class Reference
Inheritance diagram for org.ros.node.service.CountDownServiceServerListener< T, S >:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

A ServiceServerListener which uses CountDownLatch to track message invocations.

Author:
khughes@google.com (Keith M. Hughes)

Definition at line 30 of file CountDownServiceServerListener.java.


Constructor & Destructor Documentation

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.


Member Function Documentation

void org.ros.node.service.CountDownServiceServerListener< T, S >.awaitShutdown ( ) throws InterruptedException [inline]

Wait for shutdown.

Exceptions:
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.

Parameters:
timeoutthe maximum time to wait
unitthe time unit of the
 timeout 
argument
Returns:
 true 
if shutdown happened within the time period,
 false 
otherwise
Exceptions:
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]
Parameters:
masterRegistrationSuccessCountthe number of successful master registrations to wait for
masterRegistrationFailureCountthe number of failing master registrations to wait for
masterUnregistrationSuccessCountthe number of successful master unregistrations to wait for
masterUnregistrationFailureCountthe 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]
Parameters:
serviceServerthe ServiceServer which has been shut down

Implements org.ros.node.service.ServiceServerListener< T, S >.

Definition at line 72 of file CountDownServiceServerListener.java.


Member Data Documentation

final CountDownLatch org.ros.node.service.CountDownServiceServerListener< T, S >.shutdownLatch [private]

Definition at line 33 of file CountDownServiceServerListener.java.


The documentation for this class was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:51