Package ca.odell.glazedlists.impl.rbp

Examples of ca.odell.glazedlists.impl.rbp.ResourceStatus


     * @return a simple decorator of the published {@link EventList}
     *      with additional methods to bring the list offline. This list is writable.
     */
    public <E> NetworkList<E> publish(EventList<E> source, String path, ByteCoder byteCoder) {
        NetworkList<E> published = new NetworkList<E>(source, byteCoder);
        ResourceStatus resourceStatus = peer.publish(published.getResource(), path);
        published.setResourceStatus(resourceStatus);
        published.setWritable(true);
        return published;
    }
View Full Code Here


     *      source. This {@link EventList} will contain no data until the connection
     *      completes. This list is not writable.
     */
    public NetworkList subscribe(String host, int port, String path, ByteCoder byteCoder) {
        NetworkList subscribed = new NetworkList(new BasicEventList(), byteCoder);
        ResourceStatus resourceStatus = peer.subscribe(subscribed.getResource(), host, port, path);
        subscribed.setResourceStatus(resourceStatus);
        return subscribed;
    }
View Full Code Here

TOP

Related Classes of ca.odell.glazedlists.impl.rbp.ResourceStatus

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.