/** * Connect to the given address. The new {@link Target} will be * associated with this Supervisor. * * @return Target representing our end of the connection * @param spec where to connect * @see #connect(com.yahoo.jrt.Spec, java.lang.Object) **/ public Target connect(Spec spec) { return transport.connect(this, spec, null, false); }
/** * Connect to the given address. The new {@link Target} will be * associated with this Supervisor. This method will perform a * synchronous connect in the calling thread. * * @return Target representing our end of the connection * @param spec where to connect * @see #connectSync(com.yahoo.jrt.Spec, java.lang.Object) **/ public Target connectSync(Spec spec) { return transport.connect(this, spec, null, true); }
/** * Connect to the given address. The new {@link Target} will be * associated with this Supervisor and will have 'context' as * application context. * * @return Target representing our end of the connection * @param spec where to connect * @param context application context for the Target * @see Target#getContext **/ public Target connect(Spec spec, Object context) { return transport.connect(this, spec, context, false); }
/** * Connect to the given address. The new {@link Target} will be * associated with this Supervisor and will have 'context' as * application context. This method will perform a synchronous * connect in the calling thread. * * @return Target representing our end of the connection * @param spec where to connect * @param context application context for the Target * @see Target#getContext **/ public Target connectSync(Spec spec, Object context) { return transport.connect(this, spec, context, true); }