All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.infinicast.client.impl.messaging.receiver.HandlerPool Maven / Gradle / Ivy

There is a newer version: 3.0.10
Show newest version
package io.infinicast.client.impl.messaging.receiver;

import io.infinicast.Action;
import io.infinicast.ThreadPool;

import java.util.function.Consumer;
public class HandlerPool {
    public void queueHandlerCall(final Action call) {
        HandlerPool self = this;
        ThreadPool.QueueUserWorkItem(new Consumer() {
            public void accept(Object state) {
                call.accept();
                ;
            }
        }
        );
    }
}