Examples of ConnectionStrategyClientConnector


Examples of de.novanic.eventservice.client.connection.strategy.connector.ConnectionStrategyClientConnector

        assertNotNull(theConnectionStrategyClientConnector);
        assertTrue(theConnectionStrategyClientConnector instanceof GWTStreamingClientConnector);
    }

    public void testDeactivate() {
        ConnectionStrategyClientConnector theGWTStreamingClientConnector = new GWTStreamingClientConnectorGecko();

        assertFalse(theGWTStreamingClientConnector.isInitialized());
        theGWTStreamingClientConnector.init(myEventService);
        assertTrue(theGWTStreamingClientConnector.isInitialized());

        assertTrue(theGWTStreamingClientConnector.isInitialized());
        theGWTStreamingClientConnector.deactivate();
        assertTrue(theGWTStreamingClientConnector.isInitialized());//it is deactivated, but still initialized
    }
View Full Code Here

Examples of de.novanic.eventservice.client.connection.strategy.connector.ConnectionStrategyClientConnector

        theGWTStreamingClientConnector.deactivate();
        assertTrue(theGWTStreamingClientConnector.isInitialized());//it is deactivated, but still initialized
    }

    public void testDeactivate_2() {
        ConnectionStrategyClientConnector theGWTStreamingClientConnector = new GWTStreamingClientConnectorGecko();

        assertFalse(theGWTStreamingClientConnector.isInitialized());
        theGWTStreamingClientConnector.init(myEventService);
        assertTrue(theGWTStreamingClientConnector.isInitialized());

        //create the forever frame
        theGWTStreamingClientConnector.listen(new DummyEventNotification(), new AsyncCallback<List<DomainEvent>>() {
            public void onSuccess(List<DomainEvent> aDomainEvents) {}

            public void onFailure(Throwable aThrowable) {}
        });

        assertTrue(theGWTStreamingClientConnector.isInitialized());
        theGWTStreamingClientConnector.deactivate();
        assertTrue(theGWTStreamingClientConnector.isInitialized());//it is deactivated, but still initialized
    }
View Full Code Here

Examples of de.novanic.eventservice.client.connection.strategy.connector.ConnectionStrategyClientConnector

        theGWTStreamingClientConnector.deactivate();
        assertTrue(theGWTStreamingClientConnector.isInitialized());//it is deactivated, but still initialized
    }

    public void testListen() {
        ConnectionStrategyClientConnector theGWTStreamingClientConnector = new GWTStreamingClientConnectorGecko();
        theGWTStreamingClientConnector.init(myEventService);
        theGWTStreamingClientConnector.listen(new DummyEventNotification(), new AsyncCallback<List<DomainEvent>>() {
            public void onSuccess(List<DomainEvent> aDomainEvents) {}

            public void onFailure(Throwable aThrowable) {}
        });
    }
View Full Code Here

Examples of de.novanic.eventservice.client.connection.strategy.connector.ConnectionStrategyClientConnector

     * @param isReinitialize decides if the initialization (init method) of the connection strategy connector is also executed when the connection strategy connector is already initialized
     * (required for refreshes).
     * @return initialized connection strategy connector
     */
    private ConnectionStrategyClientConnector initListen(EventServiceConfigurationTransferable aConfiguration, EventServiceAsync anEventService, boolean isReinitialize) {
        ConnectionStrategyClientConnector theConnectionStrategyClientConnector = super.initListen(aConfiguration);
        if(theConnectionStrategyClientConnector != null && (isReinitialize || !theConnectionStrategyClientConnector.isInitialized())) {
            theConnectionStrategyClientConnector.init(anEventService);
        }
        return theConnectionStrategyClientConnector;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.