docstring_tokens
list | code_tokens
list |
---|---|
[
"to",
"configure",
"the",
"default",
"value",
"for",
"multiple",
"consumers"
]
| [
"this",
"default",
"multiple",
"consumers",
"=",
"default",
"multiple",
"consumers",
";"
]
|
[
"to",
"configure",
"the",
"default",
"value",
"for",
"disruptor",
"producer",
"type",
"<",
"p",
"/",
">",
"the",
"default",
"value",
"is",
"multi"
]
| [
"this",
"default",
"producer",
"type",
"=",
"default",
"producer",
"type",
";"
]
|
[
"to",
"configure",
"the",
"default",
"value",
"for",
"disruptor",
"wait",
"strategy",
"<",
"p",
"/",
">",
"the",
"default",
"value",
"is",
"blocking"
]
| [
"this",
"default",
"wait",
"strategy",
"=",
"default",
"wait",
"strategy",
";"
]
|
[
"whether",
"a",
"thread",
"that",
"sends",
"messages",
"to",
"a",
"full",
"seda",
"queue",
"will",
"block",
"until",
"the",
"queue",
"s",
"capacity",
"is",
"no",
"longer",
"exhausted",
"by",
"default",
"an",
"exception",
"will",
"be",
"thrown",
"stating",
"that",
"the",
"queue",
"is",
"full",
"by",
"enabling",
"this",
"option",
"the",
"calling",
"thread",
"will",
"instead",
"block",
"and",
"wait",
"until",
"the",
"message",
"can",
"be",
"accepted"
]
| [
"this",
"default",
"block",
"when",
"full",
"=",
"default",
"block",
"when",
"full",
";"
]
|
[
"to",
"configure",
"the",
"ring",
"buffer",
"size"
]
| [
"queue",
"size",
"=",
"size",
";"
]
|
[
"to",
"configure",
"the",
"ring",
"buffer",
"size"
]
| [
"buffer",
"size",
"=",
"size",
";"
]
|
[
"converts",
"a",
"list",
"of",
"permission",
"action",
"shaded",
"proto",
"to",
"a",
"list",
"of",
"client",
"permission",
"action",
"objects"
]
| [
"list",
"<",
"permission",
"action",
">",
"actions",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"proto",
"actions",
"size",
"(",
")",
")",
";",
"for",
"(",
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"permission",
"action",
"a",
":",
"proto",
"actions",
")",
"{",
"actions",
"add",
"(",
"to",
"permission",
"action",
"(",
"a",
")",
")",
";",
"}",
"return",
"actions",
";"
]
|
[
"convert",
"a",
"client",
"permission",
"to",
"a",
"permission",
"shaded",
"proto"
]
| [
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"permission",
"builder",
"ret",
"=",
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"permission",
"new",
"builder",
"(",
")",
";",
"if",
"(",
"perm",
"instanceof",
"table",
"permission",
")",
"{",
"table",
"permission",
"table",
"perm",
"=",
"(",
"table",
"permission",
")",
"perm",
";",
"if",
"(",
"table",
"perm",
"has",
"namespace",
"(",
")",
")",
"{",
"ret",
"set",
"type",
"(",
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"permission",
"type",
"namespace",
")",
";",
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"namespace",
"permission",
"builder",
"builder",
"=",
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"namespace",
"permission",
"new",
"builder",
"(",
")",
";",
"builder",
"set",
"namespace",
"name",
"(",
"org",
"apache",
"hbase",
"thirdparty",
"com",
"google",
"protobuf",
"byte",
"string",
"copy",
"from",
"utf",
"8",
"(",
"table",
"perm",
"get",
"namespace",
"(",
")",
")",
")",
";",
"permission",
"action",
"[",
"]",
"actions",
"=",
"perm",
"get",
"actions",
"(",
")",
";",
"if",
"(",
"actions",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"permission",
"action",
"a",
":",
"actions",
")",
"{",
"builder",
"add",
"action",
"(",
"to",
"permission",
"action",
"(",
"a",
")",
")",
";",
"}",
"}",
"ret",
"set",
"namespace",
"permission",
"(",
"builder",
")",
";",
"return",
"ret",
"build",
"(",
")",
";",
"}",
"else",
"if",
"(",
"table",
"perm",
"has",
"table",
"(",
")",
")",
"{",
"ret",
"set",
"type",
"(",
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"permission",
"type",
"table",
")",
";",
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"table",
"permission",
"builder",
"builder",
"=",
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"table",
"permission",
"new",
"builder",
"(",
")",
";",
"builder",
"set",
"table",
"name",
"(",
"to",
"proto",
"table",
"name",
"(",
"table",
"perm",
"get",
"table",
"name",
"(",
")",
")",
")",
";",
"if",
"(",
"table",
"perm",
"has",
"family",
"(",
")",
")",
"{",
"builder",
"set",
"family",
"(",
"byte",
"string",
"copy",
"from",
"(",
"table",
"perm",
"get",
"family",
"(",
")",
")",
")",
";",
"}",
"if",
"(",
"table",
"perm",
"has",
"qualifier",
"(",
")",
")",
"{",
"builder",
"set",
"qualifier",
"(",
"byte",
"string",
"copy",
"from",
"(",
"table",
"perm",
"get",
"qualifier",
"(",
")",
")",
")",
";",
"}",
"permission",
"action",
"actions",
"[",
"]",
"=",
"perm",
"get",
"actions",
"(",
")",
";",
"if",
"(",
"actions",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"permission",
"action",
"a",
":",
"actions",
")",
"{",
"builder",
"add",
"action",
"(",
"to",
"permission",
"action",
"(",
"a",
")",
")",
";",
"}",
"}",
"ret",
"set",
"table",
"permission",
"(",
"builder",
")",
";",
"return",
"ret",
"build",
"(",
")",
";",
"}",
"}",
"ret",
"set",
"type",
"(",
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"permission",
"type",
"global",
")",
";",
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"global",
"permission",
"builder",
"builder",
"=",
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"global",
"permission",
"new",
"builder",
"(",
")",
";",
"permission",
"action",
"actions",
"[",
"]",
"=",
"perm",
"get",
"actions",
"(",
")",
";",
"if",
"(",
"actions",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"permission",
"action",
"a",
":",
"actions",
")",
"{",
"builder",
"add",
"action",
"(",
"to",
"permission",
"action",
"(",
"a",
")",
")",
";",
"}",
"}",
"ret",
"set",
"global",
"permission",
"(",
"builder",
")",
";",
"return",
"ret",
"build",
"(",
")",
";"
]
|
[
"convert",
"a",
"shaded",
"protobuf",
"user",
"table",
"permissions",
"to",
"a",
"list",
"multimap",
"&",
"lt",
";",
"string",
"table",
"permission",
"&",
"gt",
";",
"where",
"key",
"is",
"username"
]
| [
"list",
"multimap",
"<",
"string",
",",
"table",
"permission",
">",
"perms",
"=",
"array",
"list",
"multimap",
"create",
"(",
")",
";",
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"users",
"and",
"permissions",
"user",
"permissions",
"user",
"perm",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"proto",
"get",
"user",
"permissions",
"count",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"user",
"perm",
"=",
"proto",
"get",
"user",
"permissions",
"(",
"i",
")",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"user",
"perm",
"get",
"permissions",
"count",
"(",
")",
";",
"j",
"+",
"+",
")",
"{",
"table",
"permission",
"table",
"perm",
"=",
"to",
"table",
"permission",
"(",
"user",
"perm",
"get",
"permissions",
"(",
"j",
")",
")",
";",
"perms",
"put",
"(",
"user",
"perm",
"get",
"user",
"(",
")",
"to",
"string",
"utf",
"8",
"(",
")",
",",
"table",
"perm",
")",
";",
"}",
"}",
"return",
"perms",
";"
]
|
[
"convert",
"a",
"list",
"multimap",
"&",
"lt",
";",
"string",
"table",
"permission",
"&",
"gt",
";",
"where",
"key",
"is",
"username",
"to",
"a",
"shaded",
"protobuf",
"user",
"permission"
]
| [
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"users",
"and",
"permissions",
"builder",
"builder",
"=",
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"users",
"and",
"permissions",
"new",
"builder",
"(",
")",
";",
"for",
"(",
"map",
"entry",
"<",
"string",
",",
"collection",
"<",
"table",
"permission",
">",
">",
"entry",
":",
"perm",
"as",
"map",
"(",
")",
"entry",
"set",
"(",
")",
")",
"{",
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"users",
"and",
"permissions",
"user",
"permissions",
"builder",
"user",
"perm",
"builder",
"=",
"org",
"apache",
"hadoop",
"hbase",
"shaded",
"protobuf",
"generated",
"access",
"control",
"protos",
"users",
"and",
"permissions",
"user",
"permissions",
"new",
"builder",
"(",
")",
";",
"user",
"perm",
"builder",
"set",
"user",
"(",
"byte",
"string",
"copy",
"from",
"utf",
"8",
"(",
"entry",
"get",
"key",
"(",
")",
")",
")",
";",
"for",
"(",
"table",
"permission",
"table",
"perm",
":",
"entry",
"get",
"value",
"(",
")",
")",
"{",
"user",
"perm",
"builder",
"add",
"permissions",
"(",
"to",
"permission",
"(",
"table",
"perm",
")",
")",
";",
"}",
"builder",
"add",
"user",
"permissions",
"(",
"user",
"perm",
"builder",
"build",
"(",
")",
")",
";",
"}",
"return",
"builder",
"build",
"(",
")",
";"
]
|
[
"converts",
"a",
"user",
"permission",
"proto",
"to",
"a",
"client",
"user",
"permission",
"object"
]
| [
"return",
"new",
"user",
"permission",
"(",
"proto",
"get",
"user",
"(",
")",
"to",
"byte",
"array",
"(",
")",
",",
"to",
"table",
"permission",
"(",
"proto",
"get",
"permission",
"(",
")",
")",
")",
";"
]
|
[
"sets",
"content",
"type",
"if",
"charset",
"is",
"missing",
"current",
"value",
"is",
"reset",
"if",
"passed",
"value",
"is",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">",
"content",
"type",
"will",
"be",
"reset",
"as",
"never",
"set"
]
| [
"if",
"(",
"type",
"=",
"=",
"null",
")",
"{",
"mime",
"type",
"=",
"null",
";",
"character",
"encoding",
"=",
"null",
";",
"return",
";",
"}",
"content",
"type",
"header",
"resolver",
"content",
"type",
"resolver",
"=",
"new",
"content",
"type",
"header",
"resolver",
"(",
"type",
")",
";",
"mime",
"type",
"=",
"content",
"type",
"resolver",
"get",
"mime",
"type",
"(",
")",
";",
"character",
"encoding",
"=",
"content",
"type",
"resolver",
"get",
"encoding",
"(",
")",
";"
]
|
[
"sets",
"just",
"character",
"encoding",
"setting",
"to",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">",
"resets",
"it"
]
| [
"character",
"encoding",
"=",
"charset",
";"
]
|
[
"applies",
"content",
"type",
"to",
"the",
"response",
"called",
"before",
"output",
"stream",
"or",
"a",
"writer",
"are",
"used"
]
| [
"if",
"(",
"mime",
"type",
"!",
"=",
"null",
")",
"{",
"super",
"set",
"content",
"type",
"(",
"mime",
"type",
")",
";",
"if",
"(",
"character",
"encoding",
"!",
"=",
"null",
")",
"{",
"super",
"set",
"character",
"encoding",
"(",
"character",
"encoding",
")",
";",
"}",
"}"
]
|
[
"returns",
"character",
"encoding",
"or",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">",
"if",
"not",
"set"
]
| [
"return",
"character",
"encoding",
";"
]
|
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"out"
]
| [
"apply",
"content",
"type",
"(",
")",
";",
"return",
"super",
"get",
"output",
"stream",
"(",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"reason",
"provided",
"for",
"the",
"termination",
"<",
"/",
"p",
">"
]
| [
"set",
"reason",
"(",
"reason",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"details",
"provided",
"for",
"the",
"termination",
"<",
"/",
"p",
">"
]
| [
"set",
"details",
"(",
"details",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"policy",
"used",
"for",
"the",
"child",
"workflow",
"executions",
"of",
"this",
"workflow",
"execution",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"supported",
"child",
"policies",
"are",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"terminate",
"<",
"/",
"code",
">",
"–",
"the",
"child",
"executions",
"are",
"terminated",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"request",
"cancel",
"<",
"/",
"code",
">",
"–",
"a",
"request",
"to",
"cancel",
"is",
"attempted",
"for",
"each",
"child",
"execution",
"by",
"recording",
"a",
"<",
"code",
">",
"workflow",
"execution",
"cancel",
"requested",
"<",
"/",
"code",
">",
"event",
"in",
"its",
"history",
"it",
"is",
"up",
"to",
"the",
"decider",
"to",
"take",
"appropriate",
"actions",
"when",
"it",
"receives",
"an",
"execution",
"history",
"with",
"this",
"event",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"abandon",
"<",
"/",
"code",
">",
"–",
"no",
"action",
"is",
"taken",
"the",
"child",
"executions",
"continue",
"to",
"run",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
]
| [
"set",
"child",
"policy",
"(",
"child",
"policy",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"policy",
"used",
"for",
"the",
"child",
"workflow",
"executions",
"of",
"this",
"workflow",
"execution",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"supported",
"child",
"policies",
"are",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"terminate",
"<",
"/",
"code",
">",
"–",
"the",
"child",
"executions",
"are",
"terminated",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"request",
"cancel",
"<",
"/",
"code",
">",
"–",
"a",
"request",
"to",
"cancel",
"is",
"attempted",
"for",
"each",
"child",
"execution",
"by",
"recording",
"a",
"<",
"code",
">",
"workflow",
"execution",
"cancel",
"requested",
"<",
"/",
"code",
">",
"event",
"in",
"its",
"history",
"it",
"is",
"up",
"to",
"the",
"decider",
"to",
"take",
"appropriate",
"actions",
"when",
"it",
"receives",
"an",
"execution",
"history",
"with",
"this",
"event",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"abandon",
"<",
"/",
"code",
">",
"–",
"no",
"action",
"is",
"taken",
"the",
"child",
"executions",
"continue",
"to",
"run",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
]
| [
"this",
"child",
"policy",
"=",
"child",
"policy",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"if",
"set",
"indicates",
"that",
"the",
"workflow",
"execution",
"was",
"automatically",
"terminated",
"and",
"specifies",
"the",
"cause",
"this",
"happens",
"if",
"the",
"parent",
"workflow",
"execution",
"times",
"out",
"or",
"is",
"terminated",
"and",
"the",
"child",
"policy",
"is",
"set",
"to",
"terminate",
"child",
"executions",
"<",
"/",
"p",
">"
]
| [
"set",
"cause",
"(",
"cause",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"if",
"set",
"indicates",
"that",
"the",
"workflow",
"execution",
"was",
"automatically",
"terminated",
"and",
"specifies",
"the",
"cause",
"this",
"happens",
"if",
"the",
"parent",
"workflow",
"execution",
"times",
"out",
"or",
"is",
"terminated",
"and",
"the",
"child",
"policy",
"is",
"set",
"to",
"terminate",
"child",
"executions",
"<",
"/",
"p",
">"
]
| [
"with",
"cause",
"(",
"cause",
")",
";"
]
|
[
"<",
"p",
">",
"if",
"set",
"indicates",
"that",
"the",
"workflow",
"execution",
"was",
"automatically",
"terminated",
"and",
"specifies",
"the",
"cause",
"this",
"happens",
"if",
"the",
"parent",
"workflow",
"execution",
"times",
"out",
"or",
"is",
"terminated",
"and",
"the",
"child",
"policy",
"is",
"set",
"to",
"terminate",
"child",
"executions",
"<",
"/",
"p",
">"
]
| [
"this",
"cause",
"=",
"cause",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"{"
]
| [
"ignite",
"configuration",
"cfg",
"=",
"super",
"get",
"configuration",
"(",
"ignite",
"instance",
"name",
")",
";",
"(",
"(",
"tcp",
"discovery",
"spi",
")",
"cfg",
"get",
"discovery",
"spi",
"(",
")",
")",
"set",
"ip",
"finder",
"(",
"ip",
"finder",
")",
";",
"if",
"(",
"get",
"test",
"ignite",
"instance",
"name",
"(",
"client",
")",
"equals",
"(",
"ignite",
"instance",
"name",
")",
")",
"cfg",
"set",
"client",
"mode",
"(",
"true",
")",
";",
"return",
"cfg",
";"
]
|
[
"{"
]
| [
"super",
"before",
"tests",
"started",
"(",
")",
";",
"start",
"grids",
"(",
"nodes",
")",
";"
]
|
[
"convenience",
"operation",
"for",
"converting",
"a",
"source",
"object",
"to",
"the",
"specified",
"target",
"type",
"where",
"the",
"target",
"type",
"is",
"a",
"descriptor",
"that",
"provides",
"additional",
"conversion",
"context",
"simply",
"delegates",
"to",
"{"
]
| [
"return",
"convert",
"(",
"source",
",",
"type",
"descriptor",
"for",
"object",
"(",
"source",
")",
",",
"target",
"type",
")",
";"
]
|
[
"template",
"method",
"to",
"convert",
"a",
"{"
]
| [
"if",
"(",
"target",
"type",
"get",
"object",
"type",
"(",
")",
"=",
"=",
"optional",
"class",
")",
"{",
"return",
"optional",
"empty",
"(",
")",
";",
"}",
"return",
"null",
";"
]
|
[
"hook",
"method",
"to",
"lookup",
"the",
"converter",
"for",
"a",
"given",
"source",
"type",
"/",
"target",
"type",
"pair",
"first",
"queries",
"this",
"conversion",
"service",
"s",
"converter",
"cache",
"on",
"a",
"cache",
"miss",
"then",
"performs",
"an",
"exhaustive",
"search",
"for",
"a",
"matching",
"converter",
"if",
"no",
"converter",
"matches",
"returns",
"the",
"default",
"converter"
]
| [
"converter",
"cache",
"key",
"key",
"=",
"new",
"converter",
"cache",
"key",
"(",
"source",
"type",
",",
"target",
"type",
")",
";",
"generic",
"converter",
"converter",
"=",
"this",
"converter",
"cache",
"get",
"(",
"key",
")",
";",
"if",
"(",
"converter",
"!",
"=",
"null",
")",
"{",
"return",
"(",
"converter",
"!",
"=",
"no",
"match",
"?",
"converter",
":",
"null",
")",
";",
"}",
"converter",
"=",
"this",
"converters",
"find",
"(",
"source",
"type",
",",
"target",
"type",
")",
";",
"if",
"(",
"converter",
"=",
"=",
"null",
")",
"{",
"converter",
"=",
"get",
"default",
"converter",
"(",
"source",
"type",
",",
"target",
"type",
")",
";",
"}",
"if",
"(",
"converter",
"!",
"=",
"null",
")",
"{",
"this",
"converter",
"cache",
"put",
"(",
"key",
",",
"converter",
")",
";",
"return",
"converter",
";",
"}",
"this",
"converter",
"cache",
"put",
"(",
"key",
",",
"no",
"match",
")",
";",
"return",
"null",
";"
]
|
[
"return",
"the",
"default",
"converter",
"if",
"no",
"converter",
"is",
"found",
"for",
"the",
"given",
"source",
"type",
"/",
"target",
"type",
"pair",
"<",
"p",
">",
"returns",
"a",
"no",
"op",
"converter",
"if",
"the",
"source",
"type",
"is",
"assignable",
"to",
"the",
"target",
"type",
"returns",
"{"
]
| [
"return",
"(",
"source",
"type",
"is",
"assignable",
"to",
"(",
"target",
"type",
")",
"?",
"no",
"op",
"converter",
":",
"null",
")",
";"
]
|
[
"internal",
"helpers"
]
| [
"resolvable",
"type",
"resolvable",
"type",
"=",
"resolvable",
"type",
"for",
"class",
"(",
"converter",
"class",
")",
"as",
"(",
"generic",
"ifc",
")",
";",
"resolvable",
"type",
"[",
"]",
"generics",
"=",
"resolvable",
"type",
"get",
"generics",
"(",
")",
";",
"if",
"(",
"generics",
"length",
"<",
"2",
")",
"{",
"return",
"null",
";",
"}",
"class",
"<",
"?",
">",
"source",
"type",
"=",
"generics",
"[",
"0",
"]",
"resolve",
"(",
")",
";",
"class",
"<",
"?",
">",
"target",
"type",
"=",
"generics",
"[",
"1",
"]",
"resolve",
"(",
")",
";",
"if",
"(",
"source",
"type",
"=",
"=",
"null",
"|",
"|",
"target",
"type",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"generics",
";"
]
|
[
"returns",
"an",
"ordered",
"class",
"hierarchy",
"for",
"the",
"given",
"type"
]
| [
"list",
"<",
"class",
"<",
"?",
">",
">",
"hierarchy",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"20",
")",
";",
"set",
"<",
"class",
"<",
"?",
">",
">",
"visited",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
"20",
")",
";",
"add",
"to",
"class",
"hierarchy",
"(",
"0",
",",
"class",
"utils",
"resolve",
"primitive",
"if",
"necessary",
"(",
"type",
")",
",",
"false",
",",
"hierarchy",
",",
"visited",
")",
";",
"boolean",
"array",
"=",
"type",
"is",
"array",
"(",
")",
";",
"int",
"i",
"=",
"0",
";",
"while",
"(",
"i",
"<",
"hierarchy",
"size",
"(",
")",
")",
"{",
"class",
"<",
"?",
">",
"candidate",
"=",
"hierarchy",
"get",
"(",
"i",
")",
";",
"candidate",
"=",
"(",
"array",
"?",
"candidate",
"get",
"component",
"type",
"(",
")",
":",
"class",
"utils",
"resolve",
"primitive",
"if",
"necessary",
"(",
"candidate",
")",
")",
";",
"class",
"<",
"?",
">",
"superclass",
"=",
"candidate",
"get",
"superclass",
"(",
")",
";",
"if",
"(",
"superclass",
"!",
"=",
"null",
"&",
"&",
"superclass",
"!",
"=",
"object",
"class",
"&",
"&",
"superclass",
"!",
"=",
"enum",
"class",
")",
"{",
"add",
"to",
"class",
"hierarchy",
"(",
"i",
"+",
"1",
",",
"candidate",
"get",
"superclass",
"(",
")",
",",
"array",
",",
"hierarchy",
",",
"visited",
")",
";",
"}",
"add",
"interfaces",
"to",
"class",
"hierarchy",
"(",
"candidate",
",",
"array",
",",
"hierarchy",
",",
"visited",
")",
";",
"i",
"+",
"+",
";",
"}",
"if",
"(",
"enum",
"class",
"is",
"assignable",
"from",
"(",
"type",
")",
")",
"{",
"add",
"to",
"class",
"hierarchy",
"(",
"hierarchy",
"size",
"(",
")",
",",
"enum",
"class",
",",
"array",
",",
"hierarchy",
",",
"visited",
")",
";",
"add",
"to",
"class",
"hierarchy",
"(",
"hierarchy",
"size",
"(",
")",
",",
"enum",
"class",
",",
"false",
",",
"hierarchy",
",",
"visited",
")",
";",
"add",
"interfaces",
"to",
"class",
"hierarchy",
"(",
"enum",
"class",
",",
"array",
",",
"hierarchy",
",",
"visited",
")",
";",
"}",
"add",
"to",
"class",
"hierarchy",
"(",
"hierarchy",
"size",
"(",
")",
",",
"object",
"class",
",",
"array",
",",
"hierarchy",
",",
"visited",
")",
";",
"add",
"to",
"class",
"hierarchy",
"(",
"hierarchy",
"size",
"(",
")",
",",
"object",
"class",
",",
"false",
",",
"hierarchy",
",",
"visited",
")",
";",
"return",
"hierarchy",
";"
]
|
[
"<",
"p",
">",
"the",
"url",
"of",
"the",
"amazon",
"sqs",
"queue",
"from",
"which",
"messages",
"are",
"received",
"<",
"/",
"p",
">",
"<",
"p",
">",
"queue",
"u",
"r",
"ls",
"and",
"names",
"are",
"case",
"-",
"sensitive",
"<",
"/",
"p",
">"
]
| [
"set",
"queue",
"url",
"(",
"queue",
"url",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"s",
"that",
"need",
"to",
"be",
"returned",
"along",
"with",
"each",
"message",
"these",
"attributes",
"include",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"all",
"<",
"/",
"code",
">",
"-",
"returns",
"all",
"values",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"approximate",
"first",
"receive",
"timestamp",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"time",
"the",
"message",
"was",
"first",
"received",
"from",
"the",
"queue",
"(",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"en",
"wikipedia",
"org",
"/",
"wiki",
"/",
"unix",
"time",
">",
"epoch",
"time",
"<",
"/",
"a",
">",
"in",
"milliseconds",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"approximate",
"receive",
"count",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"number",
"of",
"times",
"a",
"message",
"has",
"been",
"received",
"from",
"the",
"queue",
"but",
"not",
"deleted",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"sender",
"id",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"for",
"an",
"iam",
"user",
"returns",
"the",
"iam",
"user",
"id",
"for",
"example",
"<",
"code",
">",
"abcdefghi1jklmnopq23r",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"for",
"an",
"iam",
"role",
"returns",
"the",
"iam",
"role",
"id",
"for",
"example",
"<",
"code",
">",
"abcde1f2gh3i4jk5lmnop",
":",
"i",
"-",
"a",
"1",
"2",
"3b",
"4",
"5",
"6",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"sent",
"timestamp",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"time",
"the",
"message",
"was",
"sent",
"to",
"the",
"queue",
"(",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"en",
"wikipedia",
"org",
"/",
"wiki",
"/",
"unix",
"time",
">",
"epoch",
"time",
"<",
"/",
"a",
">",
"in",
"milliseconds",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"message",
"deduplication",
"id",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"value",
"provided",
"by",
"the",
"producer",
"that",
"calls",
"the",
"<",
"code",
">",
"<",
"a",
">",
"send",
"message",
"<",
"/",
"a",
">",
"<",
"/",
"code",
">",
"action",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"message",
"group",
"id",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"value",
"provided",
"by",
"the",
"producer",
"that",
"calls",
"the",
"<",
"code",
">",
"<",
"a",
">",
"send",
"message",
"<",
"/",
"a",
">",
"<",
"/",
"code",
">",
"action",
"messages",
"with",
"the",
"same",
"<",
"code",
">",
"message",
"group",
"id",
"<",
"/",
"code",
">",
"are",
"returned",
"in",
"sequence",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"sequence",
"number",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"value",
"provided",
"by",
"amazon",
"sqs",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"attribute",
"names",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"attribute",
"names",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"attribute",
"names",
"=",
"=",
"null",
")",
"{",
"set",
"attribute",
"names",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"attribute",
"names",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"attribute",
"names",
")",
"{",
"this",
"attribute",
"names",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"s",
"that",
"need",
"to",
"be",
"returned",
"along",
"with",
"each",
"message",
"these",
"attributes",
"include",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"all",
"<",
"/",
"code",
">",
"-",
"returns",
"all",
"values",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"approximate",
"first",
"receive",
"timestamp",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"time",
"the",
"message",
"was",
"first",
"received",
"from",
"the",
"queue",
"(",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"en",
"wikipedia",
"org",
"/",
"wiki",
"/",
"unix",
"time",
">",
"epoch",
"time",
"<",
"/",
"a",
">",
"in",
"milliseconds",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"approximate",
"receive",
"count",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"number",
"of",
"times",
"a",
"message",
"has",
"been",
"received",
"from",
"the",
"queue",
"but",
"not",
"deleted",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"sender",
"id",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"for",
"an",
"iam",
"user",
"returns",
"the",
"iam",
"user",
"id",
"for",
"example",
"<",
"code",
">",
"abcdefghi1jklmnopq23r",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"for",
"an",
"iam",
"role",
"returns",
"the",
"iam",
"role",
"id",
"for",
"example",
"<",
"code",
">",
"abcde1f2gh3i4jk5lmnop",
":",
"i",
"-",
"a",
"1",
"2",
"3b",
"4",
"5",
"6",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"sent",
"timestamp",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"time",
"the",
"message",
"was",
"sent",
"to",
"the",
"queue",
"(",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"en",
"wikipedia",
"org",
"/",
"wiki",
"/",
"unix",
"time",
">",
"epoch",
"time",
"<",
"/",
"a",
">",
"in",
"milliseconds",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"message",
"deduplication",
"id",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"value",
"provided",
"by",
"the",
"producer",
"that",
"calls",
"the",
"<",
"code",
">",
"<",
"a",
">",
"send",
"message",
"<",
"/",
"a",
">",
"<",
"/",
"code",
">",
"action",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"message",
"group",
"id",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"value",
"provided",
"by",
"the",
"producer",
"that",
"calls",
"the",
"<",
"code",
">",
"<",
"a",
">",
"send",
"message",
"<",
"/",
"a",
">",
"<",
"/",
"code",
">",
"action",
"messages",
"with",
"the",
"same",
"<",
"code",
">",
"message",
"group",
"id",
"<",
"/",
"code",
">",
"are",
"returned",
"in",
"sequence",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"sequence",
"number",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"value",
"provided",
"by",
"amazon",
"sqs",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
]
| [
"set",
"attribute",
"names",
"(",
"attribute",
"names",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"list",
"of",
"s",
"that",
"need",
"to",
"be",
"returned",
"along",
"with",
"each",
"message",
"these",
"attributes",
"include",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"all",
"<",
"/",
"code",
">",
"-",
"returns",
"all",
"values",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"approximate",
"first",
"receive",
"timestamp",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"time",
"the",
"message",
"was",
"first",
"received",
"from",
"the",
"queue",
"(",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"en",
"wikipedia",
"org",
"/",
"wiki",
"/",
"unix",
"time",
">",
"epoch",
"time",
"<",
"/",
"a",
">",
"in",
"milliseconds",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"approximate",
"receive",
"count",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"number",
"of",
"times",
"a",
"message",
"has",
"been",
"received",
"from",
"the",
"queue",
"but",
"not",
"deleted",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"sender",
"id",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"for",
"an",
"iam",
"user",
"returns",
"the",
"iam",
"user",
"id",
"for",
"example",
"<",
"code",
">",
"abcdefghi1jklmnopq23r",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"for",
"an",
"iam",
"role",
"returns",
"the",
"iam",
"role",
"id",
"for",
"example",
"<",
"code",
">",
"abcde1f2gh3i4jk5lmnop",
":",
"i",
"-",
"a",
"1",
"2",
"3b",
"4",
"5",
"6",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"sent",
"timestamp",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"time",
"the",
"message",
"was",
"sent",
"to",
"the",
"queue",
"(",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"en",
"wikipedia",
"org",
"/",
"wiki",
"/",
"unix",
"time",
">",
"epoch",
"time",
"<",
"/",
"a",
">",
"in",
"milliseconds",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"message",
"deduplication",
"id",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"value",
"provided",
"by",
"the",
"producer",
"that",
"calls",
"the",
"<",
"code",
">",
"<",
"a",
">",
"send",
"message",
"<",
"/",
"a",
">",
"<",
"/",
"code",
">",
"action",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"message",
"group",
"id",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"value",
"provided",
"by",
"the",
"producer",
"that",
"calls",
"the",
"<",
"code",
">",
"<",
"a",
">",
"send",
"message",
"<",
"/",
"a",
">",
"<",
"/",
"code",
">",
"action",
"messages",
"with",
"the",
"same",
"<",
"code",
">",
"message",
"group",
"id",
"<",
"/",
"code",
">",
"are",
"returned",
"in",
"sequence",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"sequence",
"number",
"<",
"/",
"code",
">",
"-",
"returns",
"the",
"value",
"provided",
"by",
"amazon",
"sqs",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
]
| [
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"attribute",
"names",
"copy",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"attribute",
"names",
"length",
")",
";",
"for",
"(",
"queue",
"attribute",
"name",
"value",
":",
"attribute",
"names",
")",
"{",
"attribute",
"names",
"copy",
"add",
"(",
"value",
"to",
"string",
"(",
")",
")",
";",
"}",
"if",
"(",
"get",
"attribute",
"names",
"(",
")",
"=",
"=",
"null",
")",
"{",
"set",
"attribute",
"names",
"(",
"attribute",
"names",
"copy",
")",
";",
"}",
"else",
"{",
"get",
"attribute",
"names",
"(",
")",
"add",
"all",
"(",
"attribute",
"names",
"copy",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"message",
"attribute",
"where",
"<",
"i",
">",
"n",
"<",
"/",
"i",
">",
"is",
"the",
"index",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"can",
"contain",
"alphanumeric",
"characters",
"and",
"the",
"underscore",
"(",
"<",
"code",
">",
"<",
"/",
"code",
">",
")",
"hyphen",
"(",
"<",
"code",
">",
"-",
"<",
"/",
"code",
">",
")",
"and",
"period",
"(",
"<",
"code",
">",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"is",
"case",
"-",
"sensitive",
"and",
"must",
"be",
"unique",
"among",
"all",
"attribute",
"names",
"for",
"the",
"message",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"must",
"not",
"start",
"with",
"aws",
"-",
"reserved",
"prefixes",
"such",
"as",
"<",
"code",
">",
"aws",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"amazon",
"<",
"/",
"code",
">",
"(",
"or",
"any",
"casing",
"variants",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"must",
"not",
"start",
"or",
"end",
"with",
"a",
"period",
"(",
"<",
"code",
">",
"<",
"/",
"code",
">",
")",
"and",
"it",
"should",
"not",
"have",
"periods",
"in",
"succession",
"(",
"<",
"code",
">",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"can",
"be",
"up",
"to",
"256",
"characters",
"long",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"when",
"using",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"you",
"can",
"send",
"a",
"list",
"of",
"attribute",
"names",
"to",
"receive",
"or",
"you",
"can",
"return",
"all",
"of",
"the",
"attributes",
"by",
"specifying",
"<",
"code",
">",
"all",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"*",
"<",
"/",
"code",
">",
"in",
"your",
"request",
"you",
"can",
"also",
"use",
"all",
"message",
"attributes",
"starting",
"with",
"a",
"prefix",
"for",
"example",
"<",
"code",
">",
"bar",
"*",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"message",
"attribute",
"names",
"=",
"=",
"null",
")",
"{",
"message",
"attribute",
"names",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
")",
";",
"}",
"return",
"message",
"attribute",
"names",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"message",
"attribute",
"where",
"<",
"i",
">",
"n",
"<",
"/",
"i",
">",
"is",
"the",
"index",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"can",
"contain",
"alphanumeric",
"characters",
"and",
"the",
"underscore",
"(",
"<",
"code",
">",
"<",
"/",
"code",
">",
")",
"hyphen",
"(",
"<",
"code",
">",
"-",
"<",
"/",
"code",
">",
")",
"and",
"period",
"(",
"<",
"code",
">",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"is",
"case",
"-",
"sensitive",
"and",
"must",
"be",
"unique",
"among",
"all",
"attribute",
"names",
"for",
"the",
"message",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"must",
"not",
"start",
"with",
"aws",
"-",
"reserved",
"prefixes",
"such",
"as",
"<",
"code",
">",
"aws",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"amazon",
"<",
"/",
"code",
">",
"(",
"or",
"any",
"casing",
"variants",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"must",
"not",
"start",
"or",
"end",
"with",
"a",
"period",
"(",
"<",
"code",
">",
"<",
"/",
"code",
">",
")",
"and",
"it",
"should",
"not",
"have",
"periods",
"in",
"succession",
"(",
"<",
"code",
">",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"can",
"be",
"up",
"to",
"256",
"characters",
"long",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"when",
"using",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"you",
"can",
"send",
"a",
"list",
"of",
"attribute",
"names",
"to",
"receive",
"or",
"you",
"can",
"return",
"all",
"of",
"the",
"attributes",
"by",
"specifying",
"<",
"code",
">",
"all",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"*",
"<",
"/",
"code",
">",
"in",
"your",
"request",
"you",
"can",
"also",
"use",
"all",
"message",
"attributes",
"starting",
"with",
"a",
"prefix",
"for",
"example",
"<",
"code",
">",
"bar",
"*",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"message",
"attribute",
"names",
"=",
"=",
"null",
")",
"{",
"this",
"message",
"attribute",
"names",
"=",
"null",
";",
"return",
";",
"}",
"this",
"message",
"attribute",
"names",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"message",
"attribute",
"names",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"message",
"attribute",
"where",
"<",
"i",
">",
"n",
"<",
"/",
"i",
">",
"is",
"the",
"index",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"can",
"contain",
"alphanumeric",
"characters",
"and",
"the",
"underscore",
"(",
"<",
"code",
">",
"<",
"/",
"code",
">",
")",
"hyphen",
"(",
"<",
"code",
">",
"-",
"<",
"/",
"code",
">",
")",
"and",
"period",
"(",
"<",
"code",
">",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"is",
"case",
"-",
"sensitive",
"and",
"must",
"be",
"unique",
"among",
"all",
"attribute",
"names",
"for",
"the",
"message",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"must",
"not",
"start",
"with",
"aws",
"-",
"reserved",
"prefixes",
"such",
"as",
"<",
"code",
">",
"aws",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"amazon",
"<",
"/",
"code",
">",
"(",
"or",
"any",
"casing",
"variants",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"must",
"not",
"start",
"or",
"end",
"with",
"a",
"period",
"(",
"<",
"code",
">",
"<",
"/",
"code",
">",
")",
"and",
"it",
"should",
"not",
"have",
"periods",
"in",
"succession",
"(",
"<",
"code",
">",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"can",
"be",
"up",
"to",
"256",
"characters",
"long",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"when",
"using",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"you",
"can",
"send",
"a",
"list",
"of",
"attribute",
"names",
"to",
"receive",
"or",
"you",
"can",
"return",
"all",
"of",
"the",
"attributes",
"by",
"specifying",
"<",
"code",
">",
"all",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"*",
"<",
"/",
"code",
">",
"in",
"your",
"request",
"you",
"can",
"also",
"use",
"all",
"message",
"attributes",
"starting",
"with",
"a",
"prefix",
"for",
"example",
"<",
"code",
">",
"bar",
"*",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"message",
"attribute",
"names",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"message",
"attribute",
"names",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"message",
"attribute",
"names",
"=",
"=",
"null",
")",
"{",
"set",
"message",
"attribute",
"names",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"message",
"attribute",
"names",
"length",
")",
")",
";",
"}",
"for",
"(",
"string",
"ele",
":",
"message",
"attribute",
"names",
")",
"{",
"this",
"message",
"attribute",
"names",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"message",
"attribute",
"where",
"<",
"i",
">",
"n",
"<",
"/",
"i",
">",
"is",
"the",
"index",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"can",
"contain",
"alphanumeric",
"characters",
"and",
"the",
"underscore",
"(",
"<",
"code",
">",
"<",
"/",
"code",
">",
")",
"hyphen",
"(",
"<",
"code",
">",
"-",
"<",
"/",
"code",
">",
")",
"and",
"period",
"(",
"<",
"code",
">",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"is",
"case",
"-",
"sensitive",
"and",
"must",
"be",
"unique",
"among",
"all",
"attribute",
"names",
"for",
"the",
"message",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"must",
"not",
"start",
"with",
"aws",
"-",
"reserved",
"prefixes",
"such",
"as",
"<",
"code",
">",
"aws",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"amazon",
"<",
"/",
"code",
">",
"(",
"or",
"any",
"casing",
"variants",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"must",
"not",
"start",
"or",
"end",
"with",
"a",
"period",
"(",
"<",
"code",
">",
"<",
"/",
"code",
">",
")",
"and",
"it",
"should",
"not",
"have",
"periods",
"in",
"succession",
"(",
"<",
"code",
">",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"the",
"name",
"can",
"be",
"up",
"to",
"256",
"characters",
"long",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"when",
"using",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"you",
"can",
"send",
"a",
"list",
"of",
"attribute",
"names",
"to",
"receive",
"or",
"you",
"can",
"return",
"all",
"of",
"the",
"attributes",
"by",
"specifying",
"<",
"code",
">",
"all",
"<",
"/",
"code",
">",
"or",
"<",
"code",
">",
"*",
"<",
"/",
"code",
">",
"in",
"your",
"request",
"you",
"can",
"also",
"use",
"all",
"message",
"attributes",
"starting",
"with",
"a",
"prefix",
"for",
"example",
"<",
"code",
">",
"bar",
"*",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"message",
"attribute",
"names",
"(",
"message",
"attribute",
"names",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"maximum",
"number",
"of",
"messages",
"to",
"return",
"amazon",
"sqs",
"never",
"returns",
"more",
"messages",
"than",
"this",
"value",
"(",
"however",
"fewer",
"messages",
"might",
"be",
"returned",
")",
"valid",
"values",
":",
"1",
"to",
"10",
"default",
":",
"1",
"<",
"/",
"p",
">"
]
| [
"this",
"max",
"number",
"of",
"messages",
"=",
"max",
"number",
"of",
"messages",
";"
]
|
[
"<",
"p",
">",
"the",
"maximum",
"number",
"of",
"messages",
"to",
"return",
"amazon",
"sqs",
"never",
"returns",
"more",
"messages",
"than",
"this",
"value",
"(",
"however",
"fewer",
"messages",
"might",
"be",
"returned",
")",
"valid",
"values",
":",
"1",
"to",
"10",
"default",
":",
"1",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"max",
"number",
"of",
"messages",
";"
]
|
[
"<",
"p",
">",
"the",
"maximum",
"number",
"of",
"messages",
"to",
"return",
"amazon",
"sqs",
"never",
"returns",
"more",
"messages",
"than",
"this",
"value",
"(",
"however",
"fewer",
"messages",
"might",
"be",
"returned",
")",
"valid",
"values",
":",
"1",
"to",
"10",
"default",
":",
"1",
"<",
"/",
"p",
">"
]
| [
"set",
"max",
"number",
"of",
"messages",
"(",
"max",
"number",
"of",
"messages",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"duration",
"(",
"in",
"seconds",
")",
"that",
"the",
"received",
"messages",
"are",
"hidden",
"from",
"subsequent",
"retrieve",
"requests",
"after",
"being",
"retrieved",
"by",
"a",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"request",
"<",
"/",
"p",
">"
]
| [
"set",
"visibility",
"timeout",
"(",
"visibility",
"timeout",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"duration",
"(",
"in",
"seconds",
")",
"for",
"which",
"the",
"call",
"waits",
"for",
"a",
"message",
"to",
"arrive",
"in",
"the",
"queue",
"before",
"returning",
"if",
"a",
"message",
"is",
"available",
"the",
"call",
"returns",
"sooner",
"than",
"<",
"code",
">",
"wait",
"time",
"seconds",
"<",
"/",
"code",
">",
"if",
"no",
"messages",
"are",
"available",
"and",
"the",
"wait",
"time",
"expires",
"the",
"call",
"returns",
"successfully",
"with",
"an",
"empty",
"list",
"of",
"messages",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"wait",
"time",
"seconds",
";"
]
|
[
"<",
"p",
">",
"the",
"duration",
"(",
"in",
"seconds",
")",
"for",
"which",
"the",
"call",
"waits",
"for",
"a",
"message",
"to",
"arrive",
"in",
"the",
"queue",
"before",
"returning",
"if",
"a",
"message",
"is",
"available",
"the",
"call",
"returns",
"sooner",
"than",
"<",
"code",
">",
"wait",
"time",
"seconds",
"<",
"/",
"code",
">",
"if",
"no",
"messages",
"are",
"available",
"and",
"the",
"wait",
"time",
"expires",
"the",
"call",
"returns",
"successfully",
"with",
"an",
"empty",
"list",
"of",
"messages",
"<",
"/",
"p",
">"
]
| [
"set",
"wait",
"time",
"seconds",
"(",
"wait",
"time",
"seconds",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"this",
"parameter",
"applies",
"only",
"to",
"fifo",
"(",
"first",
"-",
"in",
"-",
"first",
"-",
"out",
")",
"queues",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"token",
"used",
"for",
"deduplication",
"of",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"calls",
"if",
"a",
"networking",
"issue",
"occurs",
"after",
"a",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"and",
"instead",
"of",
"a",
"response",
"you",
"receive",
"a",
"generic",
"error",
"you",
"can",
"retry",
"the",
"same",
"action",
"with",
"an",
"identical",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"to",
"retrieve",
"the",
"same",
"set",
"of",
"messages",
"even",
"if",
"their",
"visibility",
"timeout",
"has",
"not",
"yet",
"expired",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"you",
"can",
"use",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"only",
"for",
"5",
"minutes",
"after",
"a",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"when",
"you",
"set",
"<",
"code",
">",
"fifo",
"queue",
"<",
"/",
"code",
">",
"a",
"caller",
"of",
"the",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"can",
"provide",
"a",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"explicitly",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"if",
"a",
"caller",
"of",
"the",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"doesn",
"t",
"provide",
"a",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"amazon",
"sqs",
"generates",
"a",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"you",
"can",
"retry",
"the",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"with",
"the",
"same",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"if",
"none",
"of",
"the",
"messages",
"have",
"been",
"modified",
"(",
"deleted",
"or",
"had",
"their",
"visibility",
"changes",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"during",
"a",
"visibility",
"timeout",
"subsequent",
"calls",
"with",
"the",
"same",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"return",
"the",
"same",
"messages",
"and",
"receipt",
"handles",
"if",
"a",
"retry",
"occurs",
"within",
"the",
"deduplication",
"interval",
"it",
"resets",
"the",
"visibility",
"timeout",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"a",
"w",
"s",
"simple",
"queue",
"service",
"/",
"latest",
"/",
"s",
"q",
"s",
"developer",
"guide",
"/",
"sqs",
"-",
"visibility",
"-",
"timeout",
"html",
">",
"visibility",
"timeout",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"simple",
"queue",
"service",
"developer",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">",
"<",
"important",
">",
"<",
"p",
">",
"if",
"a",
"caller",
"of",
"the",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"still",
"processes",
"messages",
"when",
"the",
"visibility",
"timeout",
"expires",
"and",
"messages",
"become",
"visible",
"another",
"worker",
"consuming",
"from",
"the",
"same",
"queue",
"can",
"receive",
"the",
"same",
"messages",
"and",
"therefore",
"process",
"duplicates",
"also",
"if",
"a",
"consumer",
"whose",
"message",
"processing",
"time",
"is",
"longer",
"than",
"the",
"visibility",
"timeout",
"tries",
"to",
"delete",
"the",
"processed",
"messages",
"the",
"action",
"fails",
"with",
"an",
"error",
"<",
"/",
"p",
">",
"<",
"p",
">",
"to",
"mitigate",
"this",
"effect",
"ensure",
"that",
"your",
"application",
"observes",
"a",
"safe",
"threshold",
"before",
"the",
"visibility",
"timeout",
"expires",
"and",
"extend",
"the",
"visibility",
"timeout",
"as",
"necessary",
"<",
"/",
"p",
">",
"<",
"/",
"important",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"while",
"messages",
"with",
"a",
"particular",
"<",
"code",
">",
"message",
"group",
"id",
"<",
"/",
"code",
">",
"are",
"invisible",
"no",
"more",
"messages",
"belonging",
"to",
"the",
"same",
"<",
"code",
">",
"message",
"group",
"id",
"<",
"/",
"code",
">",
"are",
"returned",
"until",
"the",
"visibility",
"timeout",
"expires",
"you",
"can",
"still",
"receive",
"messages",
"with",
"another",
"<",
"code",
">",
"message",
"group",
"id",
"<",
"/",
"code",
">",
"as",
"long",
"as",
"it",
"is",
"also",
"visible",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"if",
"a",
"caller",
"of",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"can",
"t",
"track",
"the",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"no",
"retries",
"work",
"until",
"the",
"original",
"visibility",
"timeout",
"expires",
"as",
"a",
"result",
"delays",
"might",
"occur",
"but",
"the",
"messages",
"in",
"the",
"queue",
"remain",
"in",
"a",
"strict",
"order",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"the",
"length",
"of",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"is",
"128",
"characters",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"can",
"contain",
"alphanumeric",
"characters",
"(",
"<",
"code",
">",
"a",
"-",
"z",
"<",
"/",
"code",
">",
"<",
"code",
">",
"a",
"-",
"z",
"<",
"/",
"code",
">",
"<",
"code",
">",
"0",
"-",
"9",
"<",
"/",
"code",
">",
")",
"and",
"punctuation",
"(",
"<",
"code",
">",
"!",
"#",
"$",
"%",
"&",
"amp",
";",
"(",
")",
"*",
"+",
"-",
"/",
":",
";",
"&",
"lt",
";",
"=",
"&",
"gt",
";",
"?",
"@",
"[",
"\\",
"]",
"^",
"{",
"|",
"}",
"~",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"p",
">",
"for",
"best",
"practices",
"of",
"using",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"a",
"w",
"s",
"simple",
"queue",
"service",
"/",
"latest",
"/",
"s",
"q",
"s",
"developer",
"guide",
"/",
"using",
"-",
"receiverequestattemptid",
"-",
"request",
"-",
"parameter",
"html",
">",
"using",
"the",
"receive",
"request",
"attempt",
"id",
"request",
"parameter",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"simple",
"queue",
"service",
"developer",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
]
| [
"this",
"receive",
"request",
"attempt",
"id",
"=",
"receive",
"request",
"attempt",
"id",
";"
]
|
[
"<",
"p",
">",
"this",
"parameter",
"applies",
"only",
"to",
"fifo",
"(",
"first",
"-",
"in",
"-",
"first",
"-",
"out",
")",
"queues",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"token",
"used",
"for",
"deduplication",
"of",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"calls",
"if",
"a",
"networking",
"issue",
"occurs",
"after",
"a",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"and",
"instead",
"of",
"a",
"response",
"you",
"receive",
"a",
"generic",
"error",
"you",
"can",
"retry",
"the",
"same",
"action",
"with",
"an",
"identical",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"to",
"retrieve",
"the",
"same",
"set",
"of",
"messages",
"even",
"if",
"their",
"visibility",
"timeout",
"has",
"not",
"yet",
"expired",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"you",
"can",
"use",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"only",
"for",
"5",
"minutes",
"after",
"a",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"when",
"you",
"set",
"<",
"code",
">",
"fifo",
"queue",
"<",
"/",
"code",
">",
"a",
"caller",
"of",
"the",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"can",
"provide",
"a",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"explicitly",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"if",
"a",
"caller",
"of",
"the",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"doesn",
"t",
"provide",
"a",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"amazon",
"sqs",
"generates",
"a",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"you",
"can",
"retry",
"the",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"with",
"the",
"same",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"if",
"none",
"of",
"the",
"messages",
"have",
"been",
"modified",
"(",
"deleted",
"or",
"had",
"their",
"visibility",
"changes",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"during",
"a",
"visibility",
"timeout",
"subsequent",
"calls",
"with",
"the",
"same",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"return",
"the",
"same",
"messages",
"and",
"receipt",
"handles",
"if",
"a",
"retry",
"occurs",
"within",
"the",
"deduplication",
"interval",
"it",
"resets",
"the",
"visibility",
"timeout",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"a",
"w",
"s",
"simple",
"queue",
"service",
"/",
"latest",
"/",
"s",
"q",
"s",
"developer",
"guide",
"/",
"sqs",
"-",
"visibility",
"-",
"timeout",
"html",
">",
"visibility",
"timeout",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"simple",
"queue",
"service",
"developer",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">",
"<",
"important",
">",
"<",
"p",
">",
"if",
"a",
"caller",
"of",
"the",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"still",
"processes",
"messages",
"when",
"the",
"visibility",
"timeout",
"expires",
"and",
"messages",
"become",
"visible",
"another",
"worker",
"consuming",
"from",
"the",
"same",
"queue",
"can",
"receive",
"the",
"same",
"messages",
"and",
"therefore",
"process",
"duplicates",
"also",
"if",
"a",
"consumer",
"whose",
"message",
"processing",
"time",
"is",
"longer",
"than",
"the",
"visibility",
"timeout",
"tries",
"to",
"delete",
"the",
"processed",
"messages",
"the",
"action",
"fails",
"with",
"an",
"error",
"<",
"/",
"p",
">",
"<",
"p",
">",
"to",
"mitigate",
"this",
"effect",
"ensure",
"that",
"your",
"application",
"observes",
"a",
"safe",
"threshold",
"before",
"the",
"visibility",
"timeout",
"expires",
"and",
"extend",
"the",
"visibility",
"timeout",
"as",
"necessary",
"<",
"/",
"p",
">",
"<",
"/",
"important",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"while",
"messages",
"with",
"a",
"particular",
"<",
"code",
">",
"message",
"group",
"id",
"<",
"/",
"code",
">",
"are",
"invisible",
"no",
"more",
"messages",
"belonging",
"to",
"the",
"same",
"<",
"code",
">",
"message",
"group",
"id",
"<",
"/",
"code",
">",
"are",
"returned",
"until",
"the",
"visibility",
"timeout",
"expires",
"you",
"can",
"still",
"receive",
"messages",
"with",
"another",
"<",
"code",
">",
"message",
"group",
"id",
"<",
"/",
"code",
">",
"as",
"long",
"as",
"it",
"is",
"also",
"visible",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"if",
"a",
"caller",
"of",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"can",
"t",
"track",
"the",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"no",
"retries",
"work",
"until",
"the",
"original",
"visibility",
"timeout",
"expires",
"as",
"a",
"result",
"delays",
"might",
"occur",
"but",
"the",
"messages",
"in",
"the",
"queue",
"remain",
"in",
"a",
"strict",
"order",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"the",
"length",
"of",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"is",
"128",
"characters",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"can",
"contain",
"alphanumeric",
"characters",
"(",
"<",
"code",
">",
"a",
"-",
"z",
"<",
"/",
"code",
">",
"<",
"code",
">",
"a",
"-",
"z",
"<",
"/",
"code",
">",
"<",
"code",
">",
"0",
"-",
"9",
"<",
"/",
"code",
">",
")",
"and",
"punctuation",
"(",
"<",
"code",
">",
"!",
"#",
"$",
"%",
"&",
"amp",
";",
"(",
")",
"*",
"+",
"-",
"/",
":",
";",
"&",
"lt",
";",
"=",
"&",
"gt",
";",
"?",
"@",
"[",
"\\",
"]",
"^",
"{",
"|",
"}",
"~",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"p",
">",
"for",
"best",
"practices",
"of",
"using",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"a",
"w",
"s",
"simple",
"queue",
"service",
"/",
"latest",
"/",
"s",
"q",
"s",
"developer",
"guide",
"/",
"using",
"-",
"receiverequestattemptid",
"-",
"request",
"-",
"parameter",
"html",
">",
"using",
"the",
"receive",
"request",
"attempt",
"id",
"request",
"parameter",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"simple",
"queue",
"service",
"developer",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"receive",
"request",
"attempt",
"id",
";"
]
|
[
"<",
"p",
">",
"this",
"parameter",
"applies",
"only",
"to",
"fifo",
"(",
"first",
"-",
"in",
"-",
"first",
"-",
"out",
")",
"queues",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"token",
"used",
"for",
"deduplication",
"of",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"calls",
"if",
"a",
"networking",
"issue",
"occurs",
"after",
"a",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"and",
"instead",
"of",
"a",
"response",
"you",
"receive",
"a",
"generic",
"error",
"you",
"can",
"retry",
"the",
"same",
"action",
"with",
"an",
"identical",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"to",
"retrieve",
"the",
"same",
"set",
"of",
"messages",
"even",
"if",
"their",
"visibility",
"timeout",
"has",
"not",
"yet",
"expired",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"you",
"can",
"use",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"only",
"for",
"5",
"minutes",
"after",
"a",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"when",
"you",
"set",
"<",
"code",
">",
"fifo",
"queue",
"<",
"/",
"code",
">",
"a",
"caller",
"of",
"the",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"can",
"provide",
"a",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"explicitly",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"if",
"a",
"caller",
"of",
"the",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"doesn",
"t",
"provide",
"a",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"amazon",
"sqs",
"generates",
"a",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"you",
"can",
"retry",
"the",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"with",
"the",
"same",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"if",
"none",
"of",
"the",
"messages",
"have",
"been",
"modified",
"(",
"deleted",
"or",
"had",
"their",
"visibility",
"changes",
")",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"during",
"a",
"visibility",
"timeout",
"subsequent",
"calls",
"with",
"the",
"same",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"return",
"the",
"same",
"messages",
"and",
"receipt",
"handles",
"if",
"a",
"retry",
"occurs",
"within",
"the",
"deduplication",
"interval",
"it",
"resets",
"the",
"visibility",
"timeout",
"for",
"more",
"information",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"a",
"w",
"s",
"simple",
"queue",
"service",
"/",
"latest",
"/",
"s",
"q",
"s",
"developer",
"guide",
"/",
"sqs",
"-",
"visibility",
"-",
"timeout",
"html",
">",
"visibility",
"timeout",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"simple",
"queue",
"service",
"developer",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">",
"<",
"important",
">",
"<",
"p",
">",
"if",
"a",
"caller",
"of",
"the",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"action",
"still",
"processes",
"messages",
"when",
"the",
"visibility",
"timeout",
"expires",
"and",
"messages",
"become",
"visible",
"another",
"worker",
"consuming",
"from",
"the",
"same",
"queue",
"can",
"receive",
"the",
"same",
"messages",
"and",
"therefore",
"process",
"duplicates",
"also",
"if",
"a",
"consumer",
"whose",
"message",
"processing",
"time",
"is",
"longer",
"than",
"the",
"visibility",
"timeout",
"tries",
"to",
"delete",
"the",
"processed",
"messages",
"the",
"action",
"fails",
"with",
"an",
"error",
"<",
"/",
"p",
">",
"<",
"p",
">",
"to",
"mitigate",
"this",
"effect",
"ensure",
"that",
"your",
"application",
"observes",
"a",
"safe",
"threshold",
"before",
"the",
"visibility",
"timeout",
"expires",
"and",
"extend",
"the",
"visibility",
"timeout",
"as",
"necessary",
"<",
"/",
"p",
">",
"<",
"/",
"important",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"while",
"messages",
"with",
"a",
"particular",
"<",
"code",
">",
"message",
"group",
"id",
"<",
"/",
"code",
">",
"are",
"invisible",
"no",
"more",
"messages",
"belonging",
"to",
"the",
"same",
"<",
"code",
">",
"message",
"group",
"id",
"<",
"/",
"code",
">",
"are",
"returned",
"until",
"the",
"visibility",
"timeout",
"expires",
"you",
"can",
"still",
"receive",
"messages",
"with",
"another",
"<",
"code",
">",
"message",
"group",
"id",
"<",
"/",
"code",
">",
"as",
"long",
"as",
"it",
"is",
"also",
"visible",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"if",
"a",
"caller",
"of",
"<",
"code",
">",
"receive",
"message",
"<",
"/",
"code",
">",
"can",
"t",
"track",
"the",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"no",
"retries",
"work",
"until",
"the",
"original",
"visibility",
"timeout",
"expires",
"as",
"a",
"result",
"delays",
"might",
"occur",
"but",
"the",
"messages",
"in",
"the",
"queue",
"remain",
"in",
"a",
"strict",
"order",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"<",
"p",
">",
"the",
"length",
"of",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"is",
"128",
"characters",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"can",
"contain",
"alphanumeric",
"characters",
"(",
"<",
"code",
">",
"a",
"-",
"z",
"<",
"/",
"code",
">",
"<",
"code",
">",
"a",
"-",
"z",
"<",
"/",
"code",
">",
"<",
"code",
">",
"0",
"-",
"9",
"<",
"/",
"code",
">",
")",
"and",
"punctuation",
"(",
"<",
"code",
">",
"!",
"#",
"$",
"%",
"&",
"amp",
";",
"(",
")",
"*",
"+",
"-",
"/",
":",
";",
"&",
"lt",
";",
"=",
"&",
"gt",
";",
"?",
"@",
"[",
"\\",
"]",
"^",
"{",
"|",
"}",
"~",
"<",
"/",
"code",
">",
")",
"<",
"/",
"p",
">",
"<",
"p",
">",
"for",
"best",
"practices",
"of",
"using",
"<",
"code",
">",
"receive",
"request",
"attempt",
"id",
"<",
"/",
"code",
">",
"see",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"a",
"w",
"s",
"simple",
"queue",
"service",
"/",
"latest",
"/",
"s",
"q",
"s",
"developer",
"guide",
"/",
"using",
"-",
"receiverequestattemptid",
"-",
"request",
"-",
"parameter",
"html",
">",
"using",
"the",
"receive",
"request",
"attempt",
"id",
"request",
"parameter",
"<",
"/",
"a",
">",
"in",
"the",
"<",
"i",
">",
"amazon",
"simple",
"queue",
"service",
"developer",
"guide",
"<",
"/",
"i",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"receive",
"request",
"attempt",
"id",
"(",
"receive",
"request",
"attempt",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"blast",
"some",
"random",
"strings",
"through",
"the",
"analyzer"
]
| [
"german",
"analyzer",
"a",
"=",
"new",
"german",
"analyzer",
"(",
")",
";",
"check",
"random",
"data",
"(",
"random",
"(",
")",
",",
"a",
",",
"1000",
"*",
"random",
"multiplier",
")",
";",
"a",
"close",
"(",
")",
";"
]
|
[
"sets",
"the",
"maximum",
"value",
"for",
"this",
"discrete",
"seek",
"bar",
"if",
"the",
"supplied",
"argument",
"is",
"smaller",
"than",
"the",
"current",
"min",
"value",
"the",
"min",
"value",
"will",
"be",
"set",
"to",
"max",
"-",
"1",
"<",
"p",
"/",
">",
"<",
"p",
">",
"also",
"if",
"the",
"current",
"progress",
"is",
"out",
"of",
"the",
"new",
"range",
"it",
"will",
"be",
"set",
"to",
"min",
"<",
"/",
"p",
">"
]
| [
"m",
"max",
"=",
"max",
";",
"if",
"(",
"m",
"max",
"<",
"m",
"min",
")",
"{",
"set",
"min",
"(",
"m",
"max",
"-",
"1",
")",
";",
"}",
"update",
"keyboard",
"range",
"(",
")",
";",
"if",
"(",
"m",
"value",
"<",
"m",
"min",
"|",
"|",
"m",
"value",
">",
"m",
"max",
")",
"{",
"set",
"progress",
"(",
"m",
"min",
")",
";",
"}"
]
|
[
"sets",
"a",
"listener",
"to",
"receive",
"notifications",
"of",
"changes",
"to",
"the",
"discrete",
"seek",
"bar",
"s",
"progress",
"level",
"also",
"provides",
"notifications",
"of",
"when",
"the",
"discrete",
"seek",
"bar",
"shows",
"/",
"hides",
"the",
"bubble",
"indicator"
]
| [
"m",
"public",
"change",
"listener",
"=",
"listener",
";"
]
|
[
"reset",
"all",
"states",
"to",
"zero"
]
| [
"new",
"len",
"=",
"0",
";",
"old",
"len",
"=",
"0",
";",
"arrays",
"fill",
"(",
"new",
"list",
",",
"0",
")",
";",
"arrays",
"fill",
"(",
"old",
"list",
",",
"0",
")",
";"
]
|
[
"copies",
"the",
"new",
"list",
"to",
"the",
"old",
"list",
"and",
"clears",
"the",
"new",
"list"
]
| [
"system",
"arraycopy",
"(",
"new",
"list",
",",
"0",
",",
"old",
"list",
",",
"0",
",",
"new",
"len",
")",
";",
"old",
"len",
"=",
"new",
"len",
";",
"new",
"len",
"=",
"0",
";"
]
|
[
"<",
"p",
">",
"an",
"array",
"of",
"key",
"-",
"value",
"pairs",
"containing",
"information",
"about",
"the",
"results",
"of",
"your",
"create",
"instances",
"snapshot",
"request",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"operations",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"operations",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"operations",
"=",
"=",
"null",
")",
"{",
"set",
"operations",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"operation",
">",
"(",
"operations",
"length",
")",
")",
";",
"}",
"for",
"(",
"operation",
"ele",
":",
"operations",
")",
"{",
"this",
"operations",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"an",
"array",
"of",
"key",
"-",
"value",
"pairs",
"containing",
"information",
"about",
"the",
"results",
"of",
"your",
"create",
"instances",
"snapshot",
"request",
"<",
"/",
"p",
">"
]
| [
"set",
"operations",
"(",
"operations",
")",
";",
"return",
"this",
";"
]
|
[
"public",
"void",
"dispose",
"(",
")"
]
| [
"return",
"surface",
"=",
"new",
"p",
"surface",
"f",
"x",
"(",
"this",
")",
";"
]
|
[
"returns",
"the",
"javafx",
"scene",
"canvas",
"graphics",
"context",
"used",
"by",
"this",
"renderer"
]
| [
"return",
"context",
";"
]
|
[
"shape"
]
| [
"shape",
"=",
"kind",
";",
"vertex",
"count",
"=",
"0",
";",
"curve",
"vertex",
"count",
"=",
"0",
";",
"work",
"path",
"reset",
"(",
")",
";",
"aux",
"path",
"reset",
"(",
")",
";",
"flush",
"pixels",
"(",
")",
";",
"if",
"(",
"drawing",
"thin",
"lines",
"(",
")",
")",
"{",
"adjusted",
"for",
"thin",
"lines",
"=",
"true",
";",
"translate",
"(",
"0",
"5f",
",",
"0",
"5f",
")",
";",
"}"
]
|
[
"quadratic",
"bezier",
"vertices"
]
| [
"bezier",
"vertex",
"check",
"(",
")",
";",
"work",
"path",
"quad",
"to",
"(",
"ctrl",
"x",
",",
"ctrl",
"y",
",",
"end",
"x",
",",
"end",
"y",
")",
";"
]
|
[
"renderer"
]
| [
"flush",
"pixels",
"(",
")",
";"
]
|
[
"public",
"void",
"rect",
"(",
"float",
"a",
"float",
"b",
"float",
"c",
"float",
"d",
")"
]
| [
"before",
"context",
"draw",
"(",
")",
";",
"if",
"(",
"drawing",
"thin",
"lines",
"(",
")",
")",
"{",
"x",
"1",
"+",
"=",
"0",
"5f",
";",
"x",
"2",
"+",
"=",
"0",
"5f",
";",
"y",
"1",
"+",
"=",
"0",
"5f",
";",
"y",
"2",
"+",
"=",
"0",
"5f",
";",
"}",
"if",
"(",
"fill",
")",
"context",
"fill",
"rect",
"(",
"x",
"1",
",",
"y",
"1",
",",
"x",
"2",
"-",
"x",
"1",
",",
"y",
"2",
"-",
"y",
"1",
")",
";",
"if",
"(",
"stroke",
")",
"context",
"stroke",
"rect",
"(",
"x",
"1",
",",
"y",
"1",
",",
"x",
"2",
"-",
"x",
"1",
",",
"y",
"2",
"-",
"y",
"1",
")",
";"
]
|
[
"public",
"void",
"ellipse",
"(",
"float",
"a",
"float",
"b",
"float",
"c",
"float",
"d",
")"
]
| [
"before",
"context",
"draw",
"(",
")",
";",
"if",
"(",
"drawing",
"thin",
"lines",
"(",
")",
")",
"{",
"x",
"+",
"=",
"0",
"5f",
";",
"y",
"+",
"=",
"0",
"5f",
";",
"}",
"if",
"(",
"fill",
")",
"context",
"fill",
"oval",
"(",
"x",
",",
"y",
",",
"w",
",",
"h",
")",
";",
"if",
"(",
"stroke",
")",
"context",
"stroke",
"oval",
"(",
"x",
",",
"y",
",",
"w",
",",
"h",
")",
";"
]
|
[
"shape",
"i",
"/",
"o"
]
| [
"return",
"load",
"shape",
"(",
"filename",
",",
"null",
")",
";"
]
|
[
"text",
"impl"
]
| [
"handle",
"text",
"font",
"(",
"which",
",",
"size",
")",
";",
"handle",
"text",
"size",
"(",
"size",
")",
";"
]
|
[
"matrix",
"transforms"
]
| [
"context",
"translate",
"(",
"tx",
",",
"ty",
")",
";"
]
|
[
"public",
"void",
"translate",
"(",
"float",
"tx",
"float",
"ty",
"float",
"tz",
")"
]
| [
"context",
"rotate",
"(",
"p",
"applet",
"degrees",
"(",
"angle",
")",
")",
";"
]
|
[
"matrix",
"more"
]
| [
"context",
"set",
"transform",
"(",
"new",
"affine",
"(",
")",
")",
";"
]
|
[
"public",
"void",
"apply",
"matrix",
"(",
"p",
"matrix",
"2",
"d",
"source",
")"
]
| [
"context",
"transform",
"(",
"n",
"0",
"0",
",",
"n",
"1",
"0",
",",
"n",
"0",
"1",
",",
"n",
"1",
"1",
",",
"n",
"0",
"2",
",",
"n",
"1",
"2",
")",
";"
]
|
[
"public",
"void",
"set",
"matrix",
"(",
"p",
"matrix",
"source",
")"
]
| [
"context",
"set",
"transform",
"(",
"source",
"m",
"0",
"0",
",",
"source",
"m",
"1",
"0",
",",
"source",
"m",
"0",
"1",
",",
"source",
"m",
"1",
"1",
",",
"source",
"m",
"0",
"2",
",",
"source",
"m",
"1",
"2",
")",
";"
]
|
[
"screen",
"and",
"model",
"transforms"
]
| [
"return",
"(",
"float",
")",
"context",
"get",
"transform",
"(",
")",
"transform",
"(",
"x",
",",
"y",
")",
"get",
"x",
"(",
")",
";"
]
|
[
"stroke",
"cap",
"/",
"join",
"/",
"weight"
]
| [
"super",
"stroke",
"cap",
"(",
"cap",
")",
";",
"if",
"(",
"stroke",
"cap",
"=",
"=",
"round",
")",
"{",
"context",
"set",
"line",
"cap",
"(",
"stroke",
"line",
"cap",
"round",
")",
";",
"}",
"else",
"if",
"(",
"stroke",
"cap",
"=",
"=",
"project",
")",
"{",
"context",
"set",
"line",
"cap",
"(",
"stroke",
"line",
"cap",
"square",
")",
";",
"}",
"else",
"{",
"context",
"set",
"line",
"cap",
"(",
"stroke",
"line",
"cap",
"butt",
")",
";",
"}"
]
|
[
"no",
"stroke",
"(",
")",
"and",
"stroke",
"(",
")",
"inherited",
"from",
"p",
"graphics"
]
| [
"super",
"stroke",
"from",
"calc",
"(",
")",
";",
"context",
"set",
"stroke",
"(",
"new",
"color",
"(",
"stroke",
"r",
",",
"stroke",
"g",
",",
"stroke",
"b",
",",
"stroke",
"a",
")",
")",
";"
]
|
[
"no",
"fill",
"(",
")",
"and",
"fill",
"(",
")",
"inherited",
"from",
"p",
"graphics"
]
| [
"super",
"fill",
"from",
"calc",
"(",
")",
";",
"context",
"set",
"fill",
"(",
"new",
"color",
"(",
"fill",
"r",
",",
"fill",
"g",
",",
"fill",
"b",
",",
"fill",
"a",
")",
")",
";"
]
|
[
"pimage",
"methods"
]
| [
"if",
"(",
"(",
"pixels",
"=",
"=",
"null",
")",
"|",
"|",
"(",
"pixels",
"length",
"!",
"=",
"pixel",
"width",
"*",
"pixel",
"height",
")",
")",
"{",
"pixels",
"=",
"new",
"int",
"[",
"pixel",
"width",
"*",
"pixel",
"height",
"]",
";",
"loaded",
"=",
"false",
";",
"}",
"if",
"(",
"!",
"loaded",
")",
"{",
"if",
"(",
"snapshot",
"image",
"=",
"=",
"null",
"|",
"|",
"snapshot",
"image",
"get",
"width",
"(",
")",
"!",
"=",
"pixel",
"width",
"|",
"|",
"snapshot",
"image",
"get",
"height",
"(",
")",
"!",
"=",
"pixel",
"height",
")",
"{",
"snapshot",
"image",
"=",
"new",
"writable",
"image",
"(",
"pixel",
"width",
",",
"pixel",
"height",
")",
";",
"}",
"snapshot",
"parameters",
"sp",
"=",
"null",
";",
"if",
"(",
"pixel",
"density",
"!",
"=",
"1",
")",
"{",
"sp",
"=",
"new",
"snapshot",
"parameters",
"(",
")",
";",
"sp",
"set",
"transform",
"(",
"transform",
"scale",
"(",
"pixel",
"density",
",",
"pixel",
"density",
")",
")",
";",
"}",
"snapshot",
"image",
"=",
"(",
"(",
"p",
"surface",
"f",
"x",
")",
"surface",
")",
"canvas",
"snapshot",
"(",
"sp",
",",
"snapshot",
"image",
")",
";",
"pixel",
"reader",
"pr",
"=",
"snapshot",
"image",
"get",
"pixel",
"reader",
"(",
")",
";",
"pr",
"get",
"pixels",
"(",
"0",
",",
"0",
",",
"pixel",
"width",
",",
"pixel",
"height",
",",
"argb",
"format",
",",
"pixels",
",",
"0",
",",
"pixel",
"width",
")",
";",
"loaded",
"=",
"true",
";",
"modified",
"=",
"false",
";",
"}"
]
|
[
"get",
"/",
"set",
"pixels"
]
| [
"load",
"pixels",
"(",
")",
";",
"return",
"super",
"get",
"(",
"x",
",",
"y",
")",
";"
]
|
[
"returns",
"list",
"of",
"currently",
"registered",
"repositories"
]
| [
"return",
"this",
"repositories",
";"
]
|
[
"returns",
"a",
"repository",
"with",
"a",
"given",
"name",
"or",
"null",
"if",
"such",
"repository",
"doesn",
"t",
"exist"
]
| [
"for",
"(",
"repository",
"meta",
"data",
"repository",
":",
"repositories",
")",
"{",
"if",
"(",
"name",
"equals",
"(",
"repository",
"name",
"(",
")",
")",
")",
"{",
"return",
"repository",
";",
"}",
"}",
"return",
"null",
";"
]
|
[
"{"
]
| [
"out",
"write",
"v",
"int",
"(",
"repositories",
"size",
"(",
")",
")",
";",
"for",
"(",
"repository",
"meta",
"data",
"repository",
":",
"repositories",
")",
"{",
"repository",
"write",
"to",
"(",
"out",
")",
";",
"}"
]
|
[
"{"
]
| [
"for",
"(",
"repository",
"meta",
"data",
"repository",
":",
"repositories",
")",
"{",
"to",
"x",
"content",
"(",
"repository",
",",
"builder",
",",
"params",
")",
";",
"}",
"return",
"builder",
";"
]
|
[
"<",
"p",
">",
"the",
"amazon",
"resource",
"name",
"(",
"arn",
")",
"of",
"the",
"rule",
"<",
"/",
"p",
">"
]
| [
"set",
"rule",
"arn",
"(",
"rule",
"arn",
")",
";",
"return",
"this",
";"
]
|
[
"example",
"value",
":",
"42"
]
| [
"this",
"id",
"=",
"id",
";",
"return",
"this",
";"
]
|
[
"example",
"value",
":",
"sonar",
"-",
"administrators"
]
| [
"this",
"name",
"=",
"name",
";",
"return",
"this",
";"
]
|
[
"todo",
":",
"make",
"these",
"all",
"build",
"the",
"proto"
]
| [
"duration",
"minutes",
"=",
"duration",
"standard",
"minutes",
"(",
"94",
")",
";",
"duration",
"hours",
"=",
"duration",
"standard",
"hours",
"(",
"13",
")",
";",
"runner",
"api",
"trigger",
"trigger",
"=",
"runner",
"api",
"trigger",
"new",
"builder",
"(",
")",
"set",
"after",
"processing",
"time",
"(",
"runner",
"api",
"trigger",
"after",
"processing",
"time",
"new",
"builder",
"(",
")",
"add",
"timestamp",
"transforms",
"(",
"runner",
"api",
"timestamp",
"transform",
"new",
"builder",
"(",
")",
"set",
"delay",
"(",
"runner",
"api",
"timestamp",
"transform",
"delay",
"new",
"builder",
"(",
")",
"set",
"delay",
"millis",
"(",
"minutes",
"get",
"millis",
"(",
")",
")",
")",
")",
"add",
"timestamp",
"transforms",
"(",
"runner",
"api",
"timestamp",
"transform",
"new",
"builder",
"(",
")",
"set",
"align",
"to",
"(",
"runner",
"api",
"timestamp",
"transform",
"align",
"to",
"new",
"builder",
"(",
")",
"set",
"period",
"(",
"hours",
"get",
"millis",
"(",
")",
")",
")",
")",
")",
"build",
"(",
")",
";",
"after",
"delay",
"from",
"first",
"element",
"state",
"machine",
"machine",
"=",
"(",
"after",
"delay",
"from",
"first",
"element",
"state",
"machine",
")",
"trigger",
"state",
"machines",
"state",
"machine",
"for",
"trigger",
"(",
"trigger",
")",
";",
"assert",
"that",
"(",
"machine",
"get",
"time",
"domain",
"(",
")",
",",
"equal",
"to",
"(",
"time",
"domain",
"processing",
"time",
")",
")",
";"
]
|
[
"create",
"an",
"instance",
"of",
"convergence",
"checker"
]
| [
"public",
"abstract",
"<",
"k",
",",
"v",
">",
"convergence",
"checker",
"<",
"k",
",",
"v",
">",
"create",
"(",
"long",
"sample",
"size",
",",
"ignite",
"function",
"<",
"double",
",",
"double",
">",
"external",
"lb",
"to",
"internal",
"mapping",
",",
"loss",
"loss",
",",
"dataset",
"builder",
"<",
"k",
",",
"v",
">",
"dataset",
"builder",
",",
"ignite",
"bi",
"function",
"<",
"k",
",",
"v",
",",
"vector",
">",
"feature",
"extractor",
",",
"ignite",
"bi",
"function",
"<",
"k",
",",
"v",
",",
"double",
">",
"lb",
"extractor",
")",
";"
]
|
[
"returns",
"weight",
"of",
"1",
"by",
"default"
]
| [
"return",
"(",
"long",
")",
"1",
";"
]
|
[
"verifies",
"if",
"a",
"set",
"is",
"a",
"majority",
"assumes",
"that",
"ack",
"set",
"contains",
"acks",
"only",
"from",
"voting",
"members"
]
| [
"return",
"(",
"ack",
"set",
"size",
"(",
")",
">",
"half",
")",
";"
]
|
[
"process",
"request",
"and",
"add",
"authentication",
"information",
"if",
"possible"
]
| [
"final",
"digest",
"scheme",
"digest",
"scheme",
"=",
"digest",
"cache",
"get",
"(",
"request",
"get",
"uri",
"(",
")",
")",
";",
"if",
"(",
"digest",
"scheme",
"!",
"=",
"null",
")",
"{",
"final",
"http",
"authentication",
"filter",
"credentials",
"cred",
"=",
"http",
"authentication",
"filter",
"get",
"credentials",
"(",
"request",
",",
"this",
"credentials",
",",
"http",
"authentication",
"filter",
"type",
"digest",
")",
";",
"if",
"(",
"cred",
"!",
"=",
"null",
")",
"{",
"request",
"get",
"headers",
"(",
")",
"add",
"(",
"http",
"headers",
"authorization",
",",
"create",
"next",
"auth",
"token",
"(",
"digest",
"scheme",
",",
"request",
",",
"cred",
")",
")",
";",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";"
]
|
[
"append",
"comma",
"separated",
"key",
"=",
"value",
"token",
"the",
"value",
"gets",
"enclosed",
"in",
"quotes"
]
| [
"append",
"(",
"sb",
",",
"key",
",",
"value",
",",
"true",
")",
";"
]
|
[
"generate",
"a",
"random",
"sequence",
"of",
"bytes",
"and",
"return",
"its",
"hex",
"representation"
]
| [
"final",
"byte",
"[",
"]",
"bytes",
"=",
"new",
"byte",
"[",
"nb",
"bytes",
"]",
";",
"random",
"generator",
"next",
"bytes",
"(",
"bytes",
")",
";",
"return",
"bytes",
"to",
"hex",
"(",
"bytes",
")",
";"
]
|
[
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/"
]
| [
"return",
"process",
"engine",
"name",
";"
]
|
[
"get",
"the",
"max",
"num",
"docs",
"to",
"be",
"returned",
"per",
"value"
]
| [
"return",
"max",
"docs",
"per",
"value",
";"
]
|
[
"set",
"the",
"execution",
"hint"
]
| [
"this",
"execution",
"hint",
"=",
"execution",
"hint",
";",
"return",
"this",
";"
]
|
[
"return",
"the",
"message",
"payload"
]
| [
"return",
"this",
"payload",
";"
]
|
[
"a",
"variant",
"of",
"{"
]
| [
"return",
"get",
"payload",
"as",
"text",
"(",
"standard",
"charsets",
"utf",
"8",
")",
";"
]
|
[
"a",
"shortcut",
"for",
"decoding",
"the",
"raw",
"content",
"of",
"the",
"message",
"to",
"text",
"with",
"the",
"given",
"character",
"encoding",
"this",
"is",
"useful",
"for",
"text",
"web",
"socket",
"messages",
"or",
"otherwise",
"when",
"the",
"payload",
"is",
"expected",
"to",
"contain",
"text"
]
| [
"byte",
"[",
"]",
"bytes",
"=",
"new",
"byte",
"[",
"this",
"payload",
"readable",
"byte",
"count",
"(",
")",
"]",
";",
"this",
"payload",
"read",
"(",
"bytes",
")",
";",
"return",
"new",
"string",
"(",
"bytes",
",",
"charset",
")",
";"
]
|
[
"retain",
"the",
"data",
"buffer",
"for",
"the",
"message",
"payload",
"which",
"is",
"useful",
"on",
"runtimes",
"(",
"e",
"g",
"netty",
")",
"with",
"pooled",
"buffers",
"a",
"shortcut",
"for",
":",
"<",
"pre",
">",
"data",
"buffer",
"payload",
"=",
"message",
"get",
"payload",
"(",
")",
";",
"data",
"buffer",
"utils",
"retain",
"(",
"payload",
")",
";",
"<",
"/",
"pre",
">"
]
| [
"data",
"buffer",
"utils",
"retain",
"(",
"this",
"payload",
")",
";",
"return",
"this",
";"
]
|
[
"release",
"the",
"payload",
"{"
]
| [
"data",
"buffer",
"utils",
"release",
"(",
"this",
"payload",
")",
";"
]
|
[
"/",
"*",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"burst",
"mode",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"="
]
| [
"espresso",
"helper",
"type",
"(",
"r",
"id",
"name",
"edit",
"text",
",",
"constants",
"name",
")",
";",
"espresso",
"helper",
"check",
"for",
"text",
"(",
"constants",
"state",
"crash",
",",
"m",
"result",
"text",
"view",
")",
";"
]
|
[
"this",
"method",
"will",
"attempt",
"to",
"read",
"the",
"few",
"bytes",
"off",
"a",
"file",
"which",
"will",
"in",
"turn",
"be",
"used",
"to",
"guess",
"what",
"kind",
"of",
"parsers",
"we",
"should",
"use",
"to",
"parse",
"the",
"file"
]
| [
"try",
"{",
"return",
"get",
"first",
"unzipped",
"bytes",
"checked",
"(",
"bv",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"return",
"null",
";",
"}"
]
|
[
"for",
"each",
"key",
"in",
"the",
"passed",
"in",
"map",
"this",
"function",
"returns",
"true",
"if"
]
| [
"if",
"(",
"null",
"=",
"=",
"input",
")",
"{",
"throw",
"new",
"null",
"pointer",
"exception",
"(",
")",
";",
"}",
"for",
"(",
"map",
"entry",
"<",
"string",
",",
"collection",
"<",
"string",
">",
">",
"entry",
":",
"input",
"entry",
"set",
"(",
")",
")",
"{",
"string",
"key",
"=",
"entry",
"get",
"key",
"(",
")",
";",
"collection",
"<",
"string",
">",
"value",
"=",
"entry",
"get",
"value",
"(",
")",
";",
"if",
"(",
"!",
"value",
"contains",
"(",
"get",
"value",
"from",
"key",
"function",
"apply",
"(",
"key",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.