/** * Create an instance of {@link Subscribe } * */ public Subscribe createSubscribe() { return new Subscribe(); }
/** * Create an instance of {@link Subscribe } * */ public Subscribe createSubscribe() { return new Subscribe(); }
/** * Create an instance of {@link Subscribe } * */ public Subscribe createSubscribe() { return new Subscribe(); }
try{ // You can now use the Subscribe model without its namespace // as you referenced it by its namespace in a use statement. $subscribe = new Subscribe(); // If you want to use a class that is not referenced in a use // statement then you must reference it by its full namespace. $otherModel = new \App\Models\Other\Namespace\OtherModel(); $otherModel = $input['Name']; $otherModel = $input['Email']; $otherModel = $input['Telephone']; // save $otherModel->save(); } catch (\Illuminate\Database\Eloquent\ModelNotFoundException $e) { \Log::error( $e->getMessage(), $context ); } catch (Exception $e){ \Log::error( $e->getMessage(), $context); } return response()->json( ['status'=>'success', 'message'=>'Completed successfully'] ); }
ActorRef subSocket = ZeroMQExtension.get(getContext().system()) .newSubSocket(null, new Listener(getSelf()), new Subscribe("health")); @Override public void preStart() { super.preStart(); subSocket.tell(new Connect("tcp://127.0.0.1:1237")); subSocket.tell(new Connect("tcp://127.0.0.1:1238")); }
/** * Creates a {@link Subscribe WS-Notification Subscribe message} from the * specified subscriber's endpoint and topic information. * * @param subscriberEndpoint * subscriber's endpoint. * @param topic * the QName associated to the topic to subscribe to. * * @return a WS-Notification Subscribe message with the specified * subscriber's endpoint and topic information. */ public static Subscribe createSubscribeMessage(String subscriberEndpoint, QName topic) { Subscribe subscribeRequest = new Subscribe(); FilterType filterType = new FilterType(); JAXBElement<TopicExpressionType> jaxbElement = new JAXBElement<TopicExpressionType>( WsnConstants.TOPIC_EXPRESSION_QNAME, TopicExpressionType.class, createTopicExpressionType(topic)); filterType.getAny().add(jaxbElement); subscribeRequest.setFilter(filterType); subscribeRequest.setConsumerReference(WSNHelper.createWSA(subscriberEndpoint)); return subscribeRequest; }
@Override protected Object startSubscription(TopicExpressionType topic) { try { Subscribe subscribeRequest = new Subscribe(); subscribeRequest.setConsumerReference(notificationBroker.getEpr()); subscribeRequest.setFilter(new FilterType()); subscribeRequest.getFilter().getAny().add( new JAXBElement<TopicExpressionType>(AbstractSubscription.QNAME_TOPIC_EXPRESSION, TopicExpressionType.class, topic)); SubscribeResponse response = notificationProducer.subscribe(subscribeRequest); return WSNHelper.getInstance() .getPort(response.getSubscriptionReference(), SubscriptionManager.class); } catch (Exception e) { LOGGER.log(Level.INFO, "Error while subscribing on-demand publisher", e); return null; } }
Subscribe subscribeRequest = new Subscribe(); if (initialTerminationTime != null) { subscribeRequest.setInitialTerminationTime(