Examples of send()


Examples of org.jdesktop.wonderland.server.comms.WonderlandClientSender.send()

        // Send to all clients, because the message is originating from a non-client source.
        Set<WonderlandClientID> clientIDs = sender.getClients();

        // Construct a new message with appropriate fields.
        TextChatMessage textMessage = new TextChatMessage(msg, from, "");
        sender.send(clientIDs, textMessage);
    }

    /**
     * Adds a listener object that will be called whenever a text chat message is sent.
     * Global messages sent from sendGlobalMessage are not included in these notifications.
View Full Code Here

Examples of org.jeromq.ZMsg.send()

            try {
                final StatsEMsgBuilder msg = events.take();
                final ZMsg zmsg = makeZMsg();
                zmsg.addString(msg.getHeader());
                zmsg.addString(msg.getBody());
                zmsg.send(publisher);
            } catch (InterruptedException e) {
                LOG.warn("StatsE sender interrupted.");
            }
        }
    }
View Full Code Here

Examples of org.jgroups.Channel.send()

    channel.connect("LargeStateChannel");
   
    while(true){
     
      Msg msg = new Msg(10000);
      channel.send(null, msg);
     
      System.out.println("Press Enter to re-test\n");
      System.in.read();
    }
  }
View Full Code Here

Examples of org.jgroups.JChannel.send()

            ch2.setReceiver(receiver);
            ch1.connect(cluster_name);
            ch2.connect(cluster_name);

            if(mcast)
                ch1.send(new Message(null, null, buf));
            else {
                Address dest=ch2.getAddress();
                ch1.send(new Message(dest, null, buf));
            }
View Full Code Here

Examples of org.jinstagram.auth.model.OAuthRequest.send()

        } else {
            request.addBodyParameter(OAuthConstants.ACCESS_TOKEN, accessToken.getToken());
        }
    }

    response = request.send();

    return response;
  }
 
    protected String createEnforceSignatrue(String secret, String ips) {
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.message.TestEmailSender.send()

        worker.run();
    }

    private void doTest(EmailMessage email) {
        TestEmailSender sender = TestEmailSenderFactory.newSender();
        sender.send(email);
    }

}
View Full Code Here

Examples of org.jivesoftware.openfire.muc.MUCRole.send()

    public void sendPrivatePacket(Packet packet, MUCRole senderRole) throws NotFoundException {
        String resource = packet.getTo().getResource();
        MUCRole occupant = occupants.get(resource.toLowerCase());
        if (occupant != null) {
            packet.setFrom(senderRole.getRoleAddress());
            occupant.send(packet);
            if(packet instanceof Message) {
               Message message = (Message) packet;
                 MUCEventDispatcher.privateMessageRecieved(occupant.getUserAddress(), senderRole.getUserAddress(),
                         message);
            }
View Full Code Here

Examples of org.jivesoftware.openfire.muc.MUCRoom.send()

                        room = role.getChatRoom();
                        try {
                            kickedPresence =
                                    room.kickOccupant(user.getAddress(), null, null);
                            // Send the updated presence to the room occupants
                            room.send(kickedPresence);
                        }
                        catch (NotAllowedException e) {
                            // Do nothing since we cannot kick owners or admins
                        }
                    }
View Full Code Here

Examples of org.jpos.iso.ISOChannel.send()

                        throw new ISOException("Server has no active connections");
                    }
                    if (!c.isConnected()) {
                        throw new ISOException("Client disconnected");
                    }
                    c.send(m);
                }
                catch (Exception e) {
                    getLog().warn("notify", e);
                }
            }
View Full Code Here

Examples of org.jpos.iso.ISOSource.send()

          source = table.remove(msgId);
      }
      if (source != null) {
        if (logger.isDebugEnabled())
          logger.debug(channelName+":"+source.toString()+"| Enviando mensaje.|" + message);
        source.send((ISOMsg) message);
      } else {
        logger.error(channelName+"|Mensaje para cliente desconocido.|"+message);
      }
    } catch (Exception e) {
      if (logger.isDebugEnabled())
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.