1package org.apache.archiva.rest.api.model;
2/*3 * Licensed to the Apache Software Foundation (ASF) under one4 * or more contributor license agreements. See the NOTICE file5 * distributed with this work for additional information6 * regarding copyright ownership. The ASF licenses this file7 * to you under the Apache License, Version 2.0 (the8 * "License"); you may not use this file except in compliance9 * with the License. You may obtain a copy of the License at10 *11 * http://www.apache.org/licenses/LICENSE-2.012 *13 * Unless required by applicable law or agreed to in writing,14 * software distributed under the License is distributed on an15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY16 * KIND, either express or implied. See the License for the17 * specific language governing permissions and limitations18 * under the License.19 */2021import javax.xml.bind.annotation.XmlRootElement;
22import java.io.Serializable;
2324/**25 * @author Olivier Lamy26 * @since 1.4-M327 */28 @XmlRootElement( name = "queueEntry" )
29publicclassQueueEntry30implements Serializable
31 {
32private String key;
3334privateint entriesNumber;
3536publicQueueEntry()
37 {
38// no op39 }
4041publicQueueEntry( String key, int entriesNumber )
42 {
43this.key = key;
44this.entriesNumber = entriesNumber;
45 }
4647public String getKey()
48 {
49return key;
50 }
5152publicvoid setKey( String key )
53 {
54this.key = key;
55 }
5657publicint getEntriesNumber()
58 {
59return entriesNumber;
60 }
6162publicvoid setEntriesNumber( int entriesNumber )
63 {
64this.entriesNumber = entriesNumber;
65 }
6667 @Override
68public String toString()
69 {
70final StringBuilder sb = new StringBuilder();
71 sb.append( "QueueEntry" );
72 sb.append( "{key='" ).append( key ).append( '\'' );
73 sb.append( ", entriesNumber=" ).append( entriesNumber );
74 sb.append( '}' );
75return sb.toString();
76 }
77 }