public void addWorkerHook ( IWorkerHook workerHook ) { if ( null == workerHook ) { throw new IllegalArgumentException ( "WorkerHook must not be null." ) ; } _workerHooks . add ( ByteBuffer . wrap ( Utils . javaSerialize ( workerHook ) ) ) ; }
Add a new worker lifecycle hook