当前位置: 首页>>代码示例>>Java>>正文


Java AsyncHandler类代码示例

本文整理汇总了Java中javax.xml.ws.AsyncHandler的典型用法代码示例。如果您正苦于以下问题:Java AsyncHandler类的具体用法?Java AsyncHandler怎么用?Java AsyncHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AsyncHandler类属于javax.xml.ws包,在下文中一共展示了AsyncHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: invokeAsync

import javax.xml.ws.AsyncHandler; //导入依赖的package包/类
public final Future<?> invokeAsync(T param, AsyncHandler<T> asyncHandler) {
    Container old = ContainerResolver.getDefault().enterContainer(owner.getContainer());
    try {
        if (LOGGER.isLoggable(Level.FINE)) {
          dumpParam(param, "invokeAsync(T, AsyncHandler<T>)");
        }
        AsyncInvoker invoker = new DispatchAsyncInvoker(param);
        AsyncResponseImpl<T> ft = new AsyncResponseImpl<T>(invoker,asyncHandler);
        invoker.setReceiver(ft);
        invoker.setNonNullAsyncHandlerGiven(asyncHandler != null);

        ft.run();
        return ft;
    } finally {
        ContainerResolver.getDefault().exitContainer(old);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:DispatchImpl.java

示例2: changePositionAsync

import javax.xml.ws.AsyncHandler; //导入依赖的package包/类
/**
 * 
 * @param positionId
 * @param employeeId
 * @param asyncHandler
 * @return
 *     returns java.util.concurrent.Future<? extends java.lang.Object>
 */
@WebMethod(operationName = "changePosition")
@RequestWrapper(localName = "changePosition", targetNamespace = "http://ws.technoserv.ru/", className = "ru.technoserv.ws.ChangePosition")
@ResponseWrapper(localName = "changePositionResponse", targetNamespace = "http://ws.technoserv.ru/", className = "ru.technoserv.ws.ChangePositionResponse")
public Future<?> changePositionAsync(
        @WebParam(name = "employeeId", targetNamespace = "")
                int employeeId,
        @WebParam(name = "PositionId", targetNamespace = "")
                int positionId,
        @WebParam(name = "asyncHandler", targetNamespace = "")
                AsyncHandler<ChangePositionResponse> asyncHandler);
 
开发者ID:Witerium,项目名称:stuffEngine,代码行数:19,代码来源:EmployeeWebService.java

示例3: changeGradeAsync

import javax.xml.ws.AsyncHandler; //导入依赖的package包/类
/**
 * 
 * @param gradeId
 * @param employeeId
 * @param asyncHandler
 * @return
 *     returns java.util.concurrent.Future<? extends java.lang.Object>
 */
@WebMethod(operationName = "changeGrade")
@RequestWrapper(localName = "changeGrade", targetNamespace = "http://ws.technoserv.ru/", className = "ru.technoserv.ws.ChangeGrade")
@ResponseWrapper(localName = "changeGradeResponse", targetNamespace = "http://ws.technoserv.ru/", className = "ru.technoserv.ws.ChangeGradeResponse")
public Future<?> changeGradeAsync(
        @WebParam(name = "employeeId", targetNamespace = "")
                int employeeId,
        @WebParam(name = "GradeId", targetNamespace = "")
                int gradeId,
        @WebParam(name = "asyncHandler", targetNamespace = "")
                AsyncHandler<ChangeGradeResponse> asyncHandler);
 
开发者ID:Witerium,项目名称:stuffEngine,代码行数:19,代码来源:EmployeeWebService.java

示例4: changeSalaryAsync

import javax.xml.ws.AsyncHandler; //导入依赖的package包/类
/**
 * 
 * @param employeeId
 * @param salary
 * @param asyncHandler
 * @return
 *     returns java.util.concurrent.Future<? extends java.lang.Object>
 */
@WebMethod(operationName = "changeSalary")
@RequestWrapper(localName = "changeSalary", targetNamespace = "http://ws.technoserv.ru/", className = "ru.technoserv.ws.ChangeSalary")
@ResponseWrapper(localName = "changeSalaryResponse", targetNamespace = "http://ws.technoserv.ru/", className = "ru.technoserv.ws.ChangeSalaryResponse")
public Future<?> changeSalaryAsync(
        @WebParam(name = "employeeId", targetNamespace = "")
                int employeeId,
        @WebParam(name = "Salary", targetNamespace = "")
                BigDecimal salary,
        @WebParam(name = "asyncHandler", targetNamespace = "")
                AsyncHandler<ChangeSalaryResponse> asyncHandler);
 
开发者ID:Witerium,项目名称:stuffEngine,代码行数:19,代码来源:EmployeeWebService.java

示例5: doInvoke

import javax.xml.ws.AsyncHandler; //导入依赖的package包/类
protected final Response<Object> doInvoke(Object proxy, Object[] args, AsyncHandler handler) {

        AsyncInvoker invoker = new SEIAsyncInvoker(proxy, args);
        invoker.setNonNullAsyncHandlerGiven(handler != null);
        AsyncResponseImpl<Object> ft = new AsyncResponseImpl<Object>(invoker,handler);
        invoker.setReceiver(ft);
        ft.run();
        return ft;
    }
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:AsyncMethodHandler.java

示例6: avisoEntradasAsync

import javax.xml.ws.AsyncHandler; //导入依赖的package包/类
@ResponseWrapper(localName = "avisoEntradasResponse", targetNamespace = "urn:es:caib:bantel:ws:v1:model:BantelFacade", className = "es.caib.bantel.wsClient.v1.model.AvisoEntradasResponse")
@RequestWrapper(localName = "avisoEntradas", targetNamespace = "urn:es:caib:bantel:ws:v1:model:BantelFacade", className = "es.caib.bantel.wsClient.v1.model.AvisoEntradas")
@WebMethod(operationName = "avisoEntradas")
public Future<?> avisoEntradasAsync(
    @WebParam(name = "numeroEntradas", targetNamespace = "urn:es:caib:bantel:ws:v1:model:BantelFacade")
    es.caib.bantel.wsClient.v1.model.ReferenciasEntrada numeroEntradas,
    @WebParam(name = "asyncHandler", targetNamespace = "")
    AsyncHandler<es.caib.bantel.wsClient.v1.model.AvisoEntradasResponse> asyncHandler
);
 
开发者ID:GovernIB,项目名称:sistra,代码行数:10,代码来源:BantelFacade.java

示例7: avisoEntradasAsync

import javax.xml.ws.AsyncHandler; //导入依赖的package包/类
@ResponseWrapper(localName = "avisoEntradasResponse", targetNamespace = "urn:es:caib:bantel:ws:v2:model:BantelFacade", className = "es.caib.bantel.wsClient.v2.model.AvisoEntradasResponse")
@RequestWrapper(localName = "avisoEntradas", targetNamespace = "urn:es:caib:bantel:ws:v2:model:BantelFacade", className = "es.caib.bantel.wsClient.v2.model.AvisoEntradas")
@WebMethod(operationName = "avisoEntradas")
public Future<?> avisoEntradasAsync(
    @WebParam(name = "numeroEntradas", targetNamespace = "urn:es:caib:bantel:ws:v2:model:BantelFacade")
    es.caib.bantel.wsClient.v2.model.ReferenciasEntrada numeroEntradas,
    @WebParam(name = "asyncHandler", targetNamespace = "")
    AsyncHandler<es.caib.bantel.wsClient.v2.model.AvisoEntradasResponse> asyncHandler
);
 
开发者ID:GovernIB,项目名称:sistra,代码行数:10,代码来源:BantelFacade.java

示例8: getPIArchiveDataAsync

import javax.xml.ws.AsyncHandler; //导入依赖的package包/类
/**
 * 
 * @param requests
 * @param asyncHandler
 * @return
 *     returns java.util.concurrent.Future<? extends java.lang.Object>
 */
@WebMethod(operationName = "GetPIArchiveData", action = "http://xml.osisoft.com/services/IPITimeSeries/GetPIArchiveData")
@RequestWrapper(localName = "GetPIArchiveData", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.GetPIArchiveData")
@ResponseWrapper(localName = "GetPIArchiveDataResponse", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.GetPIArchiveDataResponse")
public Future<?> getPIArchiveDataAsync(
    @WebParam(name = "requests", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
    ArrayOfPIArcDataRequest requests,
    @WebParam(name = "asyncHandler", targetNamespace = "")
    AsyncHandler<GetPIArchiveDataResponse> asyncHandler);
 
开发者ID:osimloeff,项目名称:Integrating-PI-System-with-R-White-Paper,代码行数:16,代码来源:IPITimeSeries.java

示例9: getPIUpdatesAsync

import javax.xml.ws.AsyncHandler; //导入依赖的package包/类
/**
 * 
 * @param evtFilter
 * @param maxWaitForUpdates
 * @param updateTicket
 * @param asyncHandler
 * @return
 *     returns java.util.concurrent.Future<? extends java.lang.Object>
 */
@WebMethod(operationName = "GetPIUpdates", action = "http://xml.osisoft.com/services/IPITimeSeries/GetPIUpdates")
@RequestWrapper(localName = "GetPIUpdates", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.GetPIUpdates")
@ResponseWrapper(localName = "GetPIUpdatesResponse", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.GetPIUpdatesResponse")
public Future<?> getPIUpdatesAsync(
    @WebParam(name = "updateTicket", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
    String updateTicket,
    @WebParam(name = "maxWaitForUpdates", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
    int maxWaitForUpdates,
    @WebParam(name = "evtFilter", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
    UpdateFilterType evtFilter,
    @WebParam(name = "asyncHandler", targetNamespace = "")
    AsyncHandler<GetPIUpdatesResponse> asyncHandler);
 
开发者ID:osimloeff,项目名称:Integrating-PI-System-with-R-White-Paper,代码行数:22,代码来源:IPITimeSeries.java

示例10: signUpForPIUpdatesAsync

import javax.xml.ws.AsyncHandler; //导入依赖的package包/类
/**
 * 
 * @param paths
 * @param expiration
 * @param asyncHandler
 * @return
 *     returns java.util.concurrent.Future<? extends java.lang.Object>
 */
@WebMethod(operationName = "SignUpForPIUpdates", action = "http://xml.osisoft.com/services/IPITimeSeries/SignUpForPIUpdates")
@RequestWrapper(localName = "SignUpForPIUpdates", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.SignUpForPIUpdates")
@ResponseWrapper(localName = "SignUpForPIUpdatesResponse", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.SignUpForPIUpdatesResponse")
public Future<?> signUpForPIUpdatesAsync(
    @WebParam(name = "paths", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
    ArrayOfString paths,
    @WebParam(name = "expiration", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
    int expiration,
    @WebParam(name = "asyncHandler", targetNamespace = "")
    AsyncHandler<SignUpForPIUpdatesResponse> asyncHandler);
 
开发者ID:osimloeff,项目名称:Integrating-PI-System-with-R-White-Paper,代码行数:19,代码来源:IPITimeSeries.java

示例11: cancelSignUpForPIUpdatesAsync

import javax.xml.ws.AsyncHandler; //导入依赖的package包/类
/**
 * 
 * @param updateTicket
 * @param asyncHandler
 * @return
 *     returns java.util.concurrent.Future<? extends java.lang.Object>
 */
@WebMethod(operationName = "CancelSignUpForPIUpdates", action = "http://xml.osisoft.com/services/IPITimeSeries/CancelSignUpForPIUpdates")
@RequestWrapper(localName = "CancelSignUpForPIUpdates", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.CancelSignUpForPIUpdates")
@ResponseWrapper(localName = "CancelSignUpForPIUpdatesResponse", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.CancelSignUpForPIUpdatesResponse")
public Future<?> cancelSignUpForPIUpdatesAsync(
    @WebParam(name = "updateTicket", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
    String updateTicket,
    @WebParam(name = "asyncHandler", targetNamespace = "")
    AsyncHandler<CancelSignUpForPIUpdatesResponse> asyncHandler);
 
开发者ID:osimloeff,项目名称:Integrating-PI-System-with-R-White-Paper,代码行数:16,代码来源:IPITimeSeries.java

示例12: listPathsByUpdateTicketAsync

import javax.xml.ws.AsyncHandler; //导入依赖的package包/类
/**
 * 
 * @param updateTicket
 * @param asyncHandler
 * @return
 *     returns java.util.concurrent.Future<? extends java.lang.Object>
 */
@WebMethod(operationName = "ListPathsByUpdateTicket", action = "http://xml.osisoft.com/services/IPITimeSeries/ListPaths")
@RequestWrapper(localName = "ListPathsByUpdateTicket", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.ListPathsByUpdateTicket")
@ResponseWrapper(localName = "ListPathsByUpdateTicketResponse", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.ListPathsByUpdateTicketResponse")
public Future<?> listPathsByUpdateTicketAsync(
    @WebParam(name = "updateTicket", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
    String updateTicket,
    @WebParam(name = "asyncHandler", targetNamespace = "")
    AsyncHandler<ListPathsByUpdateTicketResponse> asyncHandler);
 
开发者ID:osimloeff,项目名称:Integrating-PI-System-with-R-White-Paper,代码行数:16,代码来源:IPITimeSeries.java

示例13: getPISnapshotDataAsync

import javax.xml.ws.AsyncHandler; //导入依赖的package包/类
/**
 * 
 * @param paths
 * @param asyncHandler
 * @return
 *     returns java.util.concurrent.Future<? extends java.lang.Object>
 */
@WebMethod(operationName = "GetPISnapshotData", action = "http://xml.osisoft.com/services/IPITimeSeries/GetPISnapshotData")
@RequestWrapper(localName = "GetPISnapshotData", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.GetPISnapshotData")
@ResponseWrapper(localName = "GetPISnapshotDataResponse", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.GetPISnapshotDataResponse")
public Future<?> getPISnapshotDataAsync(
    @WebParam(name = "paths", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
    ArrayOfString paths,
    @WebParam(name = "asyncHandler", targetNamespace = "")
    AsyncHandler<GetPISnapshotDataResponse> asyncHandler);
 
开发者ID:osimloeff,项目名称:Integrating-PI-System-with-R-White-Paper,代码行数:16,代码来源:IPITimeSeries.java

示例14: getPISummaryDataAsync

import javax.xml.ws.AsyncHandler; //导入依赖的package包/类
/**
 * 
 * @param requests
 * @param asyncHandler
 * @return
 *     returns java.util.concurrent.Future<? extends java.lang.Object>
 */
@WebMethod(operationName = "GetPISummaryData", action = "http://xml.osisoft.com/services/IPITimeSeries/GetPISummaryData")
@RequestWrapper(localName = "GetPISummaryData", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.GetPISummaryData")
@ResponseWrapper(localName = "GetPISummaryDataResponse", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.GetPISummaryDataResponse")
public Future<?> getPISummaryDataAsync(
    @WebParam(name = "requests", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
    ArrayOfPISummaryDataRequest requests,
    @WebParam(name = "asyncHandler", targetNamespace = "")
    AsyncHandler<GetPISummaryDataResponse> asyncHandler);
 
开发者ID:osimloeff,项目名称:Integrating-PI-System-with-R-White-Paper,代码行数:16,代码来源:IPITimeSeries.java

示例15: insertPIDataAsync

import javax.xml.ws.AsyncHandler; //导入依赖的package包/类
/**
 * 
 * @param events
 * @param asyncHandler
 * @param duplicateSwitch
 * @return
 *     returns java.util.concurrent.Future<? extends java.lang.Object>
 */
@WebMethod(operationName = "InsertPIData", action = "http://xml.osisoft.com/services/IPITimeSeries/InsertPIData")
@RequestWrapper(localName = "InsertPIData", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.InsertPIData")
@ResponseWrapper(localName = "InsertPIDataResponse", targetNamespace = "http://xml.osisoft.com/services/PIDataService", className = "com.osisoft.xml.services.pidataservice.InsertPIDataResponse")
public Future<?> insertPIDataAsync(
    @WebParam(name = "events", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
    ArrayOfTimeSeries events,
    @WebParam(name = "duplicateSwitch", targetNamespace = "http://xml.osisoft.com/services/PIDataService")
    String duplicateSwitch,
    @WebParam(name = "asyncHandler", targetNamespace = "")
    AsyncHandler<InsertPIDataResponse> asyncHandler);
 
开发者ID:osimloeff,项目名称:Integrating-PI-System-with-R-White-Paper,代码行数:19,代码来源:IPITimeSeries.java


注:本文中的javax.xml.ws.AsyncHandler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。