Examples of subscribe()


Examples of com.darylteo.nio.DirectoryWatcher.subscribe()

    // setup builder
    // Note: BuildLauncher only accepts the Task from .model package.
    String[] tasks = generateTaskArguments(project, this.tasks);
    this.builder = connection.newBuild().forTasks(tasks);

    watcher.subscribe(new DirectoryChangedSubscriber() {
      @Override
      public void directoryChanged(DirectoryWatcher watcher, Path entry) {
        synchronized (mutex) {
          WatcherTask.this.lastChange = System.currentTimeMillis();
          mutex.notifyAll();
View Full Code Here

Examples of com.discoverydns.dnsapiclient.framework.command.CommandProcessor.subscribe()

  private BlockingCommandExecutor createBlockingCommandExecutor(
      ClientTransactionIdStrategy clientTransactionIdStrategy,
      TransactionLogHandler transactionLogHandler, WebTarget baseWebTarget) {
    final CommandProcessor commandProcessor = new BasicCommandProcessor();
    // UserCommands
    commandProcessor.subscribe(UserGetCommand.class,
        new UserGetCommandHandler(baseWebTarget));
    commandProcessor.subscribe(UserListCommand.class,
        new UserListCommandHandler(baseWebTarget));
    // PlanCommands
    commandProcessor.subscribe(PlanGetCommand.class,
View Full Code Here

Examples of com.discoverydns.dnsapiclient.framework.impl.basic.BasicCommandProcessor.subscribe()

  private BlockingCommandExecutor createBlockingCommandExecutor(
      ClientTransactionIdStrategy clientTransactionIdStrategy,
      TransactionLogHandler transactionLogHandler, WebTarget baseWebTarget) {
    final CommandProcessor commandProcessor = new BasicCommandProcessor();
    // UserCommands
    commandProcessor.subscribe(UserGetCommand.class,
        new UserGetCommandHandler(baseWebTarget));
    commandProcessor.subscribe(UserListCommand.class,
        new UserListCommandHandler(baseWebTarget));
    // PlanCommands
    commandProcessor.subscribe(PlanGetCommand.class,
View Full Code Here

Examples of com.gitblit.fanout.FanoutClient.subscribe()

    // subscribe clients A and B to the channels
    clientA.subscribe("a");
    clientA.subscribe("b");
    clientA.subscribe("c");

    clientB.subscribe("a");
    clientB.subscribe("b");
    clientB.subscribe("c");

    // give async messages a chance to be delivered
    Thread.sleep(1000);
View Full Code Here

Examples of com.goodow.realtime.channel.Bus.subscribe()

              Platform.scheduler().handle(errorHandler, message.body());
            }
          }));
    }

    handlerRegs.wrap(bus.subscribe(
        Constants.Topic.STORE + "/" + internalApi.id + Constants.Topic.PRESENCE
        + Constants.Topic.WATCH, new Handler<Message<JsonObject>>() {
          @Override
          public void handle(Message<JsonObject> message) {
            JsonObject body = message.body().set(Key.IS_ME, false);
View Full Code Here

Examples of com.google.appengine.api.prospectivesearch.ProspectiveSearchService.subscribe()

            ProspectiveSearchServiceFactory.getProspectiveSearchService();
        String topic = "HotMinutes";
        long leaseDurationSeconds = 0;
        Map<String, FieldType> schema = new HashMap<String, FieldType>();
        schema.put("memoCount", FieldType.INT32);
        prospectiveSearchService.subscribe(
            topic,
            "HotMinutes_25",
            leaseDurationSeconds,
            "memoCount = 25",
            schema);
View Full Code Here

Examples of com.intellij.util.messages.MessageBusConnection.subscribe()

      }
    }
    );

    final MessageBusConnection messageBusConnection = project.getMessageBus().connect(usageView);
    messageBusConnection.subscribe(UsageFilteringRuleProvider.RULES_CHANGED, new Runnable() {
      @Override
      public void run() {
        pingEDT.ping();
      }
    });
View Full Code Here

Examples of com.opengamma.livedata.LiveDataClient.subscribe()

  }

  @Override
  public void subscribe(UserPrincipal user, LiveDataSpecification requestedSpecification, LiveDataListener listener) {
    LiveDataClient underlying = identifyUnderlying(requestedSpecification);
    underlying.subscribe(user, requestedSpecification, listener);
  }

  @Override
  public void subscribe(UserPrincipal user, Collection<LiveDataSpecification> requestedSpecifications, LiveDataListener listener) {
    Map<LiveDataClient, List<LiveDataSpecification>> split = splitCollection(requestedSpecifications);
View Full Code Here

Examples of com.peterhi.obsolete.RemoteRegistry.subscribe()

    RudpLocalEndpoint endpoint = new MultithreadedRudpLocalEndpoint();
    final RemoteRegistry registry = new RemoteRegistry(endpoint);
    endpoint.run();
   
    SocketAddress address = new InetSocketAddress(InetAddress.getLocalHost(), 22222);
    final AboutMe aboutMe = registry.subscribe(address, "aboutMe", AboutMe.class);
    System.out.println("object = " + aboutMe);
    System.out.println("name = " + aboutMe.getName());
    System.out.println("description = " + aboutMe.getDescription());
    System.out.println("friends = " + aboutMe.getFriendNames(15));
   
View Full Code Here

Examples of com.peterhi.working.Registry.subscribe()

  public static void main(String[] args) throws Exception {
    final Registry registry = new Registry(0);
    registry.run();
    SocketAddress address = new InetSocketAddress(InetAddress.getLocalHost(), 22222);
    final AboutMe aboutMe = registry.subscribe(address, "aboutMe", AboutMe.class, 0);
    System.out.println("Returned! " + aboutMe.getClass());
    System.out.println("NAME = " + aboutMe.getName());
    Hobbies h = aboutMe.getHobbies();
    int c = h.getCount();
    System.out.println(c);
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.