Package com.betfair.platform.virtualheap

Examples of com.betfair.platform.virtualheap.HeapListener


    protected final List<Update> lastUpdate = new LinkedList<Update>();

    public HeapBuilder() {
        super("some uri");

        addListener(new HeapListener() {
            @Override
            public void applyUpdate(UpdateBlock update) {
                allUpdates.addAll(update.list());

                lastUpdate.clear();
View Full Code Here


public class ConnectedObjectUtils {
    public static boolean waitForRootInstall(Heap heap, long timeoutMillis) {
        final CountDownLatch latch = new CountDownLatch(1);
        final AtomicBoolean result = new AtomicBoolean(false);
        // adds the listener first
        HeapListener listener = new HeapListener() {
            @Override
            public void applyUpdate(UpdateBlock update) {
                for (Update u : update.list()) {
                    if (u.getUpdateType() == Update.UpdateType.INSTALL_ROOT) {
                        result.set(true);
View Full Code Here

TOP

Related Classes of com.betfair.platform.virtualheap.HeapListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.