public class BlockingWorkerFeature extends AbstractFeature
-javaagent:aspectjweaver-1.8.8.jar
<aspect name="io.helixservice.feature.worker.BlockingWorkerAspect"\>
| Constructor and Description |
|---|
BlockingWorkerFeature()
Create the blocking worker feature
|
| Modifier and Type | Method and Description |
|---|---|
io.vertx.core.Vertx |
getVertx() |
static boolean |
isOnWorkerThread()
Call this method to test if your code is executing
on a blocking worker thread.
|
void |
start(Server server)
Called by Helix Server when the server is starting.
|
findByType, findByType, finish, getFeatureName, getRegistrationMap, logFeatureDetails, register, stoppublic BlockingWorkerFeature()
public static boolean isOnWorkerThread()
public void start(Server server)
AbstractFeatureThe order features will be called is the same order they initially registered with Helix. At the time this method is called, Vert.x will be initialized enabling the feature to create any Vert.x related resources.
Features should create and register any singleton components and allocate resources during the start call. Blocking operations are allowed in this method.
start in interface Featurestart in class AbstractFeatureserver - Helix Server that is starting uppublic io.vertx.core.Vertx getVertx()
Copyright © 2016. All rights reserved.