public interface ClusterClient
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addConcurrentListener(ClusterListener listener)
Add concurrent listener, listener consumes partition one by one
|
void |
addConcurrentListener(String className)
Add concurrent listener using default constructor by class name
|
void |
askFor(String target)
Ask for subscribe target
|
void |
askForGUID(String guid)
Ask for GUID
|
List<ClusterListener> |
getConcurrentListeners()
Get concurrent listener list
|
void |
start()
Start to launch client
|
void |
stop()
Stop to launch client
|
void |
waitForStop(long timelimitInSec)
Wait for limited time to stop, mainly for testing
|
void askFor(String target) throws Exception
target - targetException - Exceptionvoid askForGUID(String guid) throws Exception
guid - guidException - Exceptionvoid waitForStop(long timelimitInSec)
throws InterruptedException
timelimitInSec - limited time to wait for stoppedInterruptedException - InterruptedExceptionvoid addConcurrentListener(ClusterListener listener)
listener - listenervoid addConcurrentListener(String className) throws InstantiationException, IllegalAccessException, ClassNotFoundException
className - classNameInstantiationException - InstantiationExceptionIllegalAccessException - IllegalAccessExceptionClassNotFoundException - ClassNotFoundExceptionList<ClusterListener> getConcurrentListeners()
Copyright © 2017. All Rights Reserved.