@@ -0,0 +1,2699 @@
+/*%0A * Copyright (c) 2013 Red Rainbow IT Solutions GmbH, Germany%0A *%0A * Permission is hereby granted, free of charge, to any person obtaining a copy of%0A * this software and associated documentation files (the %22Software%22), to deal in%0A * the Software without restriction, including without limitation the rights to%0A * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of%0A * the Software, and to permit persons to whom the Software is furnished to do so,%0A * subject to the following conditions:%0A * %0A * The above copyright notice and this permission notice shall be included in all%0A * copies or substantial portions of the Software.%0A * %0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS%0A * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR%0A * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER%0A * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN%0A * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.%0A */%0A%0Apackage org.jeeventstore.jeecqrs.sagas;%0A%0Aimport org.jeeventstore.jeecqrs.sagas.SagaTimeoutRequest;%0A%0A/**%0A * Default implementation of %7B@link SagaTimeoutRequest%7D.%0A * %0A * @param %3CE%3E   the type of events to handle%0A */%0Apublic class DefaultSagaTimeoutRequest%3CE%3E implements SagaTimeoutRequest%3CE%3E %7B%0A    %0A    private String bucketId;%0A    private String sagaId;%0A    private long timeout;%0A    private String description;%0A    private E event;%0A%0A    public DefaultSagaTimeoutRequest(%0A            String bucketId,%0A            String sagaId,%0A            long timeout,%0A            String description,%0A            E event) %7B%0A%0A        if (bucketId == null)%0A            throw new NullPointerException(%22bucketId must not be null%22);%0A        if (sagaId == null)%0A            throw new NullPointerException(%22sagaId must not be null%22);%0A        if (sagaId.trim().isEmpty())%0A            throw new IllegalArgumentException(%22sagaId must not be empty%22);%0A        if (event == null)%0A            throw new NullPointerException(%22event must not be null%22);%0A%0A        this.bucketId = bucketId;%0A        this.sagaId = sagaId;%0A        this.timeout = timeout;%0A        this.description = description;%0A        this.event = event;%0A    %7D%0A%0A    @Override%0A    public String bucketId() %7B%0A        return bucketId;%0A    %7D%0A%0A    @Override%0A    public String sagaId() %7B%0A        return sagaId;%0A    %7D%0A%0A    @Override%0A    public long timeout() %7B%0A%09return timeout;%0A    %7D%0A%0A    @Override%0A    public String description() %7B%0A        return description;%0A    %7D%0A%0A    @Override%0A    public E event() %7B%0A%09return event;%0A    %7D%0A    %0A%7D%0A

Refactor package of DefaultSagaTimeoutRequest