public class Fetchy extends Object implements org.irenical.lifecycle.LifeCycle
| Constructor and Description |
|---|
Fetchy() |
| Modifier and Type | Method and Description |
|---|---|
<SERVICE> Optional<Stub<SERVICE>> |
find(Class<SERVICE> serviceClass) |
boolean |
isRunning() |
<SERVICE> void |
register(ServiceFactory<SERVICE> factory) |
void |
start() |
void |
stop() |
public <SERVICE> void register(ServiceFactory<SERVICE> factory) throws ServiceAlreadyExistsException
ServiceAlreadyExistsExceptionpublic void start()
start in interface org.irenical.lifecycle.LifeCyclepublic void stop()
stop in interface org.irenical.lifecycle.LifeCyclepublic boolean isRunning()
isRunning in interface org.irenical.lifecycle.LifeCycleCopyright © 2016 Irenical. All rights reserved.