Search in sources :

Example 1 with ServiceThread

use of com.wm.app.b2b.server.ServiceThread in project Tundra by Permafrost.

the class service method join.

public static final void join(IData pipeline) throws ServiceException {
    // --- <<IS-START(join)>> ---
    // @subtype unknown
    // @sigtype java 3.5
    // [i] object:0:optional $thread
    // [i] field:0:optional $raise? {&quot;true&quot;,&quot;false&quot;}
    // [o] record:0:optional $pipeline
    IDataCursor cursor = pipeline.getCursor();
    try {
        ServiceThread thread = IDataHelper.get(cursor, "$thread", ServiceThread.class);
        boolean raise = IDataHelper.getOrDefault(cursor, "$raise", Boolean.class, true);
        if (thread != null)
            IDataHelper.put(cursor, "$pipeline", ServiceHelper.join(thread, raise));
    } finally {
        cursor.destroy();
    }
// --- <<IS-END>> ---
}
Also used : ServiceThread(com.wm.app.b2b.server.ServiceThread)

Aggregations

ServiceThread (com.wm.app.b2b.server.ServiceThread)1